Fetches disk/volume information from a given computer
The script has been archived. The script is now maintained here.
This script fetches disk/volume information from a given computer and displays
- Volume name
- Capacity
- Free Space
- Boot Volume Status
- System Volume Status
- File System Type
With -SendMail switch no data is returned to the console.
- Windows Server 2012R2, 2016, 2019
- Exchange Server 2013+ (for AllExchangeServer switch)
- WMI access to remote computers
Can of the computer to fetch disk information from
Target unit for disk space value (default = GB)
Switch to fetch disk space data from all Exchange Servers
Switch to send an Html report
Email address of report sender
Email address of report recipient
SMTP Server for email report
.\Get-Diskpace.ps1 -ComputerName MYSERVER
Get disk information from computer MYSERVER
.\Get-Diskpace.ps1 -ComputerName MYSERVER -Unit MB
Get disk information from computer MYSERVER in MB
.\Get-Diskpace.ps1 -AllExchangeServer -SendMail -MailFrom postmaster@sedna-inc.com -MailTo exchangeadmin@sedna-inc.com -MailServer mail.sedna-inc.com
Get disk information from all Exchange servers and send html email
THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.
Written by: Thomas Stensitzki
- My Blog: https://blog.granikos.eu
- Bluesky: https://bsky.app/profile/stensitzki.bsky.social
- LinkedIn: https://www.linkedin.com/in/thomasstensitzki
- YouTube: https://www.youtube.com/@ThomasStensitzki
- LinkTree: https://linktr.ee/stensitzki
For more Office 365, Cloud Security, and Exchange Server stuff checkout services provided by Granikos
- Website: https://www.granikos.eu/en/
- Bluesky: https://bsky.app/profile/granikos.bsky.social