Description
This script fetches the disk volume (Win32_Volume) information via WMI and shows the results in the PowerShell command line window. Optionally, you can have the report sent as an Html email to a recipient of your choice.
The switch -AllExchangeServer simplifies gathering the disk volume information across all Exchange servers in your environment.
The following screenshot shows the command line output when using
.\Get-Diskpace.ps1 -ComputerName MYSERVER

The following screenshot shows an example of the HTML email output when using
.\Get-Diskpace.ps1 -ComputerName MYSERVER -SendMail -MailFrom postmaster@sedna-inc.com ` -MailTo exchangeadmin@sedna-inc.com -MailServer mail.sedna-inc.com

Examples
# EXAMPLE 1 # Get disk information from computer MYSERVER in MB Get-Diskpace.ps1 -ComputerName MYSERVER -Unit MB # EXAMPLE 2 # Get disk information from all Exchange servers and send html email Get-Diskpace.ps1 -AllExchangeServer -SendMail -MailFrom postmaster@sedna-inc.com ` -MailTo exchangeadmin@sedna-inc.com -MailServer mail.sedna-inc.com
Version History
- 1.0, Initial community release
- 1.1, Email reports added
- 1.11, Send email issue fixed
- 1.12, PowerShell hygiene applied
Links
- Download and follow at Github: https://github.com/Apoc70/Get-Diskspace
Follow
- Twitter @stensitzki
Additional Note
This Powershell script has been optimized using the ISESteroids™ add-on. Learn more about ISESteroids™ here.
Sie sehen gerade einen Platzhalterinhalt von Facebook. Um auf den eigentlichen Inhalt zuzugreifen, klicken Sie auf die Schaltfläche unten. Bitte beachten Sie, dass dabei Daten an Drittanbieter weitergegeben werden.
Mehr Informationen