Quick Blog: PowerShell Disk and MountPoint Check

You may also like...

4 Responses

  1. Tom Hoover says:

    My profile as use for ISE is last in this comment.

    I cannot get the Get-DisksSpace to function. I have called it using

    Get-DisksSpace ‘computername’
    Get-DisksSpace “computername”
    Get-DisksSpace computername
    Get-DisksSpace $env:computername

    And it returns the error
    Get-WmiObject : Invalid class
    At C:\Documents and Settings\thoover\My Documents\WindowsPowerShell\Microsoft.PowerShellI
    SE_profile.ps1:9 char:14
    + Get-WmiObject <<< ”
    }

    Thanks for whatever help you can give me.

    • Aaron Nelson says:

      Tom,

      Try running: Get-Command Get-DisksSpace and see if that returns anything. If it doesn’t that means the function didn’t load up. If it does respond back that it has Get-DisksSpace loaded up then that’s a completely different problem.

  1. 2010.11.24

    […] This post was mentioned on Twitter by ravikanth and Nicholas Cain, Aaron Nelson. Aaron Nelson said: New post: Quick Blog: PowerShell Disk and MountPoint Check http://bit.ly/fXC0qa #SQLPASS […]

  2. 2011.01.18

    […] If you’d like some of the scripts that I reference in my profile you can grab the Get-DisksSpace one here and I’ll be blogging about the rest later this week.  That’s all that I’ve […]

Leave a Reply

%d bloggers like this: