Logical Drive Information

You can use this PowerShell script to collect logical disk space information from remote computers.

 
 
 
 
 
5 Star
(1)
1,825 times
Add to favorites
Storage
12/5/2011
E-mail Twitter del.icio.us Digg Facebook
  • Ask for credential
    1 Posts | Last post September 21, 2012
    • Hi Santhosh, I have ended up here across the search engine and your script looks very promising.  However, we have 3 domain controllers and I was wondering if you could add a code to ask for domain credential to be used fore it connect to the servers on the network to pull the Logical Disk info.
  • Test-path error
    3 Posts | Last post August 27, 2011
    • Hi,
      I am getting below error when executing the script
      
              ---------------------------------------------------------
              Computer Name           Drive           Capacity                Free Splace
              ---------------------------------------------------------
      Test-Path : The UNC path should be of the form \\server\share.
      At C:\scripts\ldinfo.ps1:17 char:27
      +     $adminpath = Test-Path <<<<  \\$computer\admin$
          + CategoryInfo          : InvalidArgument: (\\\admin$:String) [Test-Path], ArgumentException
          + FullyQualifiedErrorId : ItemExistsArgumentError,Microsoft.PowerShell.Commands.TestPathCommand
      
      Can't access Computer ->
      Missing expression after '.' in pipeline element.
      At C:\scripts\ldinfo.ps1:36 char:2
      + . <<<<
          + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
          + FullyQualifiedErrorId : MissingExpression
      
      Regards,
      Shashi
    • I got the answer for this.
      I missed to add the "ComputerName" in the file.
    • Good.  Thanks for the update.