Avatar of sara2000
 asked on

mount point report

I am looking for a powershell script to get report of mount points on few server.
Expert out there, Can you please share me he script?

Avatar of undefined
Last Comment
Shaun Vermaak

8/22/2022 - Mon
Shaun Vermaak

Please try
Get-WmiObject Win32_Volume | ForEach {
    New-Object PSObject -Property @{
        Name = $_.Name
        Label = $_.Label
        FreeSpace_GB = ([Math]::Round($_.FreeSpace /1GB,2))
        TotalSize_GB = ([Math]::Round($_.Capacity /1GB,2))

Open in new window


Thank you for this. IS there any way I can email the report .
Shaun Vermaak

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Thanks Shaun, I have no experience in scripts , hope you do not mind.  How do I run this remotely (from another server)?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Shaun Vermaak

No problem. Save in PS1 file and run
Invoke-Command -ComputerName ServerName01 -FilePath "C:\Temp\Script.ps1"

Open in new window