Drive size information

Hi Guys,
I am running the below script from my pc and I am getting the below error please can you help.
##connect-QADService -service 'domain.local' -Credential (Get-Credential Domain\Account)
$servers = Get-Content "D:\Server Info\domain.txt"
$DriveSize = foreach($server in $servers){
Get-WMIObject Win32_LogicalDisk -filter DriveType=3 -computer $server| Select SystemName,DeviceID,VolumeName,@{Name=”Size(GB)”;Expression={[decimal](“{0:N1}” -f($_.size/1gb))}},@{Name=”Used Space(GB)”;Expression={[decimal](“{0:N1}” -f(($_.size/1gb)-($_.freespace/1gb)))}},@{Name=”FreeSpace(GB)”;expression={[decimal]::round(($_.FreeSpace/1073741824),2)}},@{Name=”Used
Space(%)”;Expression={“{0:P2}” -f((($_.size/1gb) – ($_.freespace/1gb)) / ($_.size/1gb))}}
$DriveSize | Export-CSV -Path "D:\Server Info\domain.csv” -NoTypeInformation
Error Message
Get-WmiObject : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)
This is the root domain where i am getting this msg, however running the same script on a child domain is absolutely fine.
The account I am using has enterprise admin rights. Now I am lost where I am getting it wrong.
Please note that root domain DC's have windows 2003 server and no 2008 server.
Anyone please help.
Many Thanks,
Ali
Ali Hussaini

There is no WMI on a root domain.  You are querying servers. One of the servers has your account blocked or does not have the WMI set up for remoting.
This is what you are erring on:
Get-WMIObject Win32_LogicalDisk -filter DriveType=3 -computer $server
The error message contains the server name that failed.  YOu didn't post the whole error so we cannot help you.
¯\_(ツ)_/¯

Similar Messages

  • ERROR while querying ACM driver's information

    I am using following scheme to transmit sound over network:
    file -> input datasource -> processor -> output datasource -> RTPManager -> network
    File from which i am transmitting is temporary. I am create this file before transmit and delete it after.
    1. Application starts
    2. I am perform transmit first time - everything fine, but in std otput i see message "ERROR while querying ACM driver's information".
    3. I am perform transmit second time - everything fine, but file that i am created for transmitting stays locked by JMF for about 20 minutes.
    4. Any transmit after "ERROR while querying ACM driver's information" locks input file for about 15-20 minutes.
    Any suggestions will be appreciated.
    Thanks for advance!

    I can't download your code RAR, so can you just post the code you're using to handle the shutdown? (and please use the code tags)Thanks for anwser. There is entire test code i wrote (code with "mutex" variable is not nessesary, i wrote it just for clearer output):
    import javax.media.*;
    import javax.media.format.AudioFormat;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.DataSource;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.File;
    import java.nio.channels.FileChannel;
    public class Test {
        public static void main(String[] args) {
            File sourceFile = new File("1.wav");
            for (int i = 0; i < 3; i++) {
                System.out.format("Try number %d\n", i);
                File tempFile;
                try {
                    tempFile = File.createTempFile("TestTemp", ".wav");
                } catch (IOException e) {
                    System.err.format("Cannot create temporary file %s \n", e);
                    return;
                if (!copyFile(sourceFile, tempFile)) {
                    return;
                DataSource ds;
                try {
                    ds = javax.media.Manager.createDataSource(new MediaLocator("file:" + tempFile.getPath()));
                } catch (Exception e) {
                    System.err.format("Cannot create datasource %s \n", e);
                    return;
                Format[] formats = new Format[1];
                formats[0] = new AudioFormat(AudioFormat.ULAW_RTP, 8000, 8, 1);
                ProcessorModel prm = new ProcessorModel(ds, formats, new ContentDescriptor(ContentDescriptor.RAW_RTP));
                Processor processor;
                try {
                    processor = Manager.createRealizedProcessor(prm);
                } catch (Exception e) {
                    System.err.format("Cannot create processor %s \n", e);
                    return;
                processor.close();
                Object mutex = new Object();
                synchronized (mutex) {
                    try {
                        mutex.wait(1000);
                    } catch (InterruptedException e) {
                        System.err.format("Thread interrupted, try number " + i + "\n");
                        return;
                if (!tempFile.delete()) {
                    System.err.format("Cannot delete temporary file, try number " + i + "\n");
                System.out.format("Try end number %d\n", i);
        public static boolean copyFile(File sourceFile, File destFile) {
            FileChannel source = null;
            FileChannel destination = null;
            try {
                source = new FileInputStream(sourceFile).getChannel();
                destination = new FileOutputStream(destFile).getChannel();
                destination.transferFrom(source, 0, source.size());
            } catch (Exception e) {
                System.err.format("Error while copying files %s \n", e);
                return false;
            finally {
                if (source != null) {
                    try {
                        source.close();
                    } catch (IOException e) {
                        System.err.format("Error while trying close source file %s \n", e);
                if (destination != null) {
                    try {
                        destination.close();
                    } catch (IOException e) {
                        System.err.format("Error while trying close destination file %s \n", e);
            return true;
    }I have figured out that if i continue to try deleting files used by processor (that already closed) while program is running, files will be deleted after ~15 minutes. I have figured out this while testing my main application. This test app also may be modified to reproduce this behaviour. If you want, i can submit a modified test code to reproduce this behaviour.
    If JMF is maintaining a file lock, then I assume you've improperly shutdown the processor / datasink...About resource deallocation. First, there is no datasink i have been created manually (may be jmf create it internally, but i dont think so). In my test application i've been created only input datasource and processor. I have tried deallocate datasource also, but this is dont have any effect. In JMF reference we can see this description of method Processor.close():
    "Releases all resources and cease all activity."
    I think this is enough to call Processor.close() to deallocate input file, is that right?

  • Determine Drive Info From Crystal Reports - Free Space & Drive Size

    I am looking for a way to determine drive information in crystal reports.
    I know you can report on files and directories but I'm looking to report:
    Drive Size
    Free Space
    Is it possible to use Visual Basic or Crystal commands to provide this info?
    Any help would be much appreciated.

    Please re-post if this is still an issue to the Legacy Application Development SDKs Forum or purchase a case and have a dedicated support engineer work with you directly
    No, Crystal Reports does not have any system API's. Search VB help file for more info on accessing drive space info.

  • What is the maximum hard drive size can I install into my MacBook Pro 15 "late 2008 ?

    Hello community, I play with the thought in my MacBook Pro 15 "late 2008 equipped with an SSD hard drive. What is the maximum hard drive size can I install? Thank you in advance
    Dirk

    mende1, greetings:
    mende1 wrote:
    I don't recommend you to install a hard drive bigger than 2 TB if you are going to install Windows in Boot Camp or you may have problems
    The largest 2.5" SATA HDDs of 9.5 mm thickness that I am aware of are 1 TB in capacity.  There is a 12.5 mm thick  HDD that will fit some MBPs.  But I have not seen any of larger capacity. 
    Are there now 2 TB HDDs available for MBPs?    If so, I am interested.
    Ciao.
    Both OWC and Crucial have SSDs of about 1 TB capacity.
    Message was edited by: OGELTHORPE

  • Maximum firewire drive size for OS9?

    What is the largest firewire drive I can fully use?
    Can I mount a larger drive, but only use part of it?
    Thanks!

    Hi, Les -
    OS 9 has a volume size limit of about 200GB - a volume bigger than that won't be seen by OS 9.
    This is a volume size limit, not a drive size limit, so a drive larger than 200GB can be partitoned into volumes no larger than about 190GB, and OS 9 will be able to see all the volumes.
    This limit applies when OS 9 is the boot OS, not when it is used as Classic with OSX as the boot OS.

  • Maximum hard drive size for 350 MHz slot loading?

    Hello,
    What is the maximum hard drive size for a 350 MHz slot loading imac?
    I am aware of a 128 GB limit on imacs. Does the 128 GB hard drive limit apply to all imac CRTs or just the earlier models?
    Here are the specs of my imac:
    Blueberry 350 MHz
    Slot loading CD-ROM drive,
    6 GB hard drive
    Is the maximum hard drive size limit of 127GB apply to this particular model?
    Thanks

    Yes, the last CRT iMac was in 2001. The first machines with built-in greater than 127 GB support were released in June 2002, as this article explains:
    http://docs.info.apple.com/article.html?artnum=86178
    So all CRT iMacs have that limiation.
    http://support.apple.com/specs/imac/
    The 8 GB limit is explained here:
    http://docs.info.apple.com/article.html?artnum=106235

  • Maximum hard drive size for upgrading a dv6375ea?

    Hello to all,
      My hard drive began to make noises and since it is past warranty, I will upgrade it. When I had bought the laptop I had chatted with a HP personnel on these support pages, and he/she had told me that the maximum size that the bios allowed was 120 gb. That is the original hard drive size!
      Has anyone upgraded their hard drive or does anybody know of a technical value that I should try?
    Thanks for your time,

    You can install as large a drive as you can find as long as it is SATA and 2.5" wide and 9.5 mm thick. SATA drives have no BIOS size limit. However, some have occasionally reported issues with 500 gig drives and 7200 rpm drives. I can therefore tell you with 100% certainty you can install a 320 gig 5400 rpm drive in your laptop. My favorite website for laptop hard drives is newegg.com. Don't buy from HP parts; it will cost way too much. You should be able to find the drive I mention for around $80 and laptop drives are also sold at Best Buy, Frys and similar stores.

  • O.S. / Hard Drive Size for NIO Server/Client's load testing...

    Hi All
    I am currently load testing a NIO Server/Client's to see what would be the maximum number of connections that could reached, using the following PC: P4, 3GHz, 1GB RAM, Windows XP, SP2, 110 GB Hard Drive.
    However, I would like to test the Server/Client performance on different OS's:
    Which would be the best possible option from the following:
    1. Partition my current drive, (using e.g. Partition Magic), to e.g.
    - Win XP: 90 GB
    - Win Server 2000: 10 GB
    - Linux: 5 GB
    - Shared/Data: 5 GB
    2. Install a separate Hard drive with the different hard drives
    3. Use a disk caddie, to swap in/out test hard drives.
    4. Any thing else?
    - Would the Operating System's hard drive size affect the Server/Client's performance, e.g. affecting the number of connections, number of File Handles, the virtual memory, etc.?
    Many Thanks,
    Matt

    You can use a partition on the same HDD or use a second HDD, disk caddie well if its a direct IDE or SCSI. If its usb no it will be too slow, may be if you have a fire-wire but I still don't recommend it.
    Be careful if you don't have any experience installing Linux you may do multiple partitions on you disk without knowing, because Linux ext partitions are not visible to windows.
    Recommended disk size for fedora is 10 GB. This is the amount of data that will be created on you HDD when you do a full installation.

  • Max Hard Drive size for Ultra 10s

    Hi,
    I'm kinda new to sun and I have a ultra 10s with a 9 Gig factory installed HD.
    I was wondering what the maximum sized IDE hard drive that can be installed. I would like to mirror the system as well. I've seen another post about this but the max size was a 27 Gig drive and didn't explain how to mirror. I have Solaris 8 1/01 meda kit does that include the required software to mirror the drives. I think it's called Raid Manager?
    Many thanks

    I'm not sure what the max drive size supported on an Ultra-10, but most
    new Sun products are shipping with 40 GByte EIDE drives and use the
    same chipset. Caveat emptor: Solaris <7 may or may not support EIDE
    larger than 8GBytes, but since you are on Solaris 8 you should be ok.
    For SCSI drives (requires a PCI SCSI HBA for the Ultra-10) the size can
    be quite large. The most common large size SCSI drives today is 180
    GBytes, but SCSI is designed to scale much larger.
    You don't want RAIDManager for mirroring. Look for Solstice DiskSuite (SDS)
    in your media distribution. If I'm not mistaken, it is cleverly hidden in
    the "EA" directory on CD 2of2 in the media kit. Also, look for docs on
    mirroring root using SDS on http://docs.sun.com
    -- richard

  • Max disk drive size for dv7-6187cl

    what is the maximum disk drive size?  I have one failing (still under warranty) but I might want ot upgrade to a 2TB mobile drive.  Does anyone know if this laptop will support anything larger than the 750GB drives that came with it?

    Hi,
    My dv7 has 2 HDD's each is 1TB in size.
    Hope this helps.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • DV6745us hard drive size max

    Does any know the largest internal hard drive size that  dv6745us Pavillion has support for in the BIOS? I upgraded from a 250gb to a 320gb but want to go to a 500gb or 640gb. I called HP but they can't tell me what it is. Go figure.

    Hi:
    No one is going to quote you anything more than what the service manual states, unless they have personally took a gamble and succesfully installed a drive larger than the specs indicated (which is 250 GB).
    You have successfully already exceeded that spec.
    In theory, a 750 GB HDD should work just fine in your notebook and a 1 TB drive should too if the thickness is the same as a 750 GB or less. Some 1 TB drives are thicker than lesser sized drives and therefore won't fit in the drive bay.
    Roll the dice, or wait indefintely for someone to reply that can say for sure whether a larger drive than 320 GB will work or not.
    I am pretty confident a larger drive will.
    Paul

  • Max Hard Drive Size....?

    recently picked up an emac, after holding out for a 1.42ghz model
    anyway, already added a DVD burner and about to add some RAM (currently has 768mb)
    the current hard drive is only 80gb - plus its having some issues... after some slow down in using anything on the mac i poked around and found the disk utility is reporting the S.M.A.R.T status as bad...
    so i was wanting to replace it due to wanting more storage space, and this has just made me need to do it sooner rather than later.
    my main question:
    is there a maximum hard drive size the emac will take?
    if the mac will take a 750gb drive, and if i can find an IDE drive that big anywhere i would, just i know they are kind of hard to come by... failing that a 500gb IDE drive is easy come by...
    will they work?
    cheers

    is there a maximum hard drive size the emac will take?
    No.
    will (those considerations) work?
    Yes, any IDE/ATA will work in the eMac.
    https://eshop.macsales.com/search/3.5InternalIDE/ATA\
    Do not get a SATA (Serial ATA) drive as they are not suitable for your eMac.
    Message was edited by: roam

  • HP Compaq dc7800 bios limit on hard drive size

    I have a dc7800 which has the latest bios update v1.32, and I have been using it with a 750gb boot drive and a 1.5tb second drive for some time. I recently bought a 3tb drive to replace the 1.5tb drive. When I connected it to the onboard SATA connector and booted up, the BIOS only reported finding an 800gb drive.  Thinking this might be a defective drive, I went to Fry's and traded it for another of the same type and size. Same result when I installed it. Both drives were WD Red drives, and I have no clue what the problem is. A 1tb WD White drive was recognized without problem, so I wonder if there is a dc7800 BIOS limitation on the drive size. Anybody have an idea what that limitation might be?
    Thanks,
    Michael

    Hi,
    Yes and No, please read the following articles and prepare properly before install new HDD:
        http://blogs.technet.com/b/askcore/archive/2010/02​/18/understanding-the-2-tb-limit-in-windows-storag​...
        http://community.wd.com/t5/Desktop-Mobile-Drives/3​TB-Internal-Drive-as-746GB/td-p/356135
    Any HDD vendor has a tool for you to get over this.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • UCS C series maximum hard drive size

    Looking for info on the maximum hard drive size support on teh UCS C series.  I have a C200M2 that I added a 4TB drive, I have updated the server to the latest firmware and BIOS however the server shows the drive size is 2TB.

    Hi!  and welcome to the community mate!
    Here is the table that shows the supported disk's PID for the C200 server:
    http://www.cisco.com/c/dam/en/us/products/collateral/servers-unified-computing/ucs-c-series-rack-servers/c200m2_sff_specsheet.pdf
    If you successfully installed ONE HDD of 4GB and made it work, you were lucky cause I don't see any disk with that size, I have not even seen a disk of that size for UCS yet.
    I am wondering if perhaps you installed 4 disks of 1TB and configured them in RAID 1 which would explain the reason for the size to go down to half of the capacity of the array as RAID 1 is a mirror.
    Let me know if I misunderstood you.
    Rate ALL helpful answers.
    -Kenny

  • T400 maximum hard drive size supported by BIOS.

    Does anyone know what the maximum hard drive size supported by the BIOS for a T400?
    Solved!
    Go to Solution.

    it doesn't exist yet. You can use any sata hdd with 2.5 inch form factor and 9.5 mm thickness. 
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

Maybe you are looking for

  • Is it possible to restore your History if a remote support tech "resets your browser" while you're signed into Firefox Sync?

    I was having trouble sending a large email so I contacted my ISP via chat. I gave him remote access but I thought he would let me know what he was going to do if it was anything drastic. I would've signed out of Sync if I knew he was going to clear m

  • Remove/hide navigation panel header

    Hi, I tried making the expand and collapse icons to 0px and also made the detailed navigation iView "tray" property to false but it did not help me. I have to hide or remove the navigation panel header(the expand/collapse panel). Thanks in advance. R

  • Default Storage Unit in LT01

    Hi experts, When i create a tranfer order (LT01 tranx) field LTAP-VLENR appears with a value (SU) by deffault. However, executing  LT01 with the same material, with different Sotrage Type, this field appears empty, In the other hand, in LT12 tranx, t

  • Maximized dialog box by mistake

    Somehow, don't know how, I managed to maximize the dialog box for file management (open, save, save as etc). So it now opens full screen and I can't for the life of me find out how to return it to it's orginal size. The re-size handles don't seem to

  • I accidentally deleted an email. How can I restore.

    When selecting an email to open I accidentally clicked on the bin symbol. Can and how I restore. I would appreciate your help as it is an important email for me . It is the first in a sequence conversation. Thank You Nancy