Guest blog - Eliminate the risk by knowing your disk
ושוב אני , כמובטח, אצל שי מתארח
והפעם בעסקי דיסקים ונפחים עסקינן
ה"דבא ים" (DBA) בקשו שהדיסק להם ידווח
שידעו על מצבו לפני שיוכרז בר-מינן
לעקוב ולדעת, לזהות כשלפתע צומח
טענו שהשו"ב ,בתיאור התראותיו , קמצן
ומנגנון הדוח"ות מסורבל ואותם הוא רוצח
סקריפטו (שי) אומר, דולי עזוב הדברים , רשום הפרטים
כתוב אפליקציה מתאימה לאנשי הטבלאות
באדום צבע את החריגים ותאפשר שינוי ספים
בממשק נוח לבריות, שבנתונים יהיה קל לצפות
עכשיו לאחר התנסות קצרה "הדבא ים" מרוצים
אולי גם אתם רוצים, בכלי הנ"ל להתנסות
עבורכם, בתחתית הפוסט קישורים לקבצים
קובץ התקנה עבור האפליקציה לחלונות
וסקריפט לאנשים שאוהבים מסכים כחולים
I'm very pleased to have on my blog a friend, colleague and a PowerShell convert, Dolav Hadas. This will be his second guest blog, the first one was in Hebrew. Dolav, the stage is yours.
For those who prefer the blue screen (not the BSOD
) Get-FreeSpace is a function which delivers logical disk information from local and remote computers. Before querying a remote machine the function sends a ping request to the target machine. The function will continue querying disk information, only for those machines that answered its ping request. The Unreachable Destinations are saved in memory, and can be shown on screen by using the ListUnreachable Switch parameter.
A list of remote computers can be added to the command line by writing the machine names or by reading it from a text file:
Get-FreeSpace –ComputerName Server1,Server2,Server3,Server4 …
OR
“Server1”,”Server2”,”Server3”,”Server4” | Get-FreeSpace
OR
Get-Content .\ServersList.txt | Get-FreeSpace
The result is the same:

The attached script also contains a filter, written by Shay Levy, that can be used to mark low disk space rows:
Get-FreeSpace -ComputerName Server1,Server2,server3,server4 | Out-Color -FilterScript {$_.FreeSpacePercent -lt 10} | Format-Table

For detailed help just type:
Get-Help Get-FreeSpace –Full
For just the examples type:
Get-Help Get-FreeSpace -Examples
Get-DiskInfo, The GUI version (written with Sapien's Primal Forms 2009 Editor). The GUI version has more features and in my opinion, much easier to use:

1. The first step is to write down a list of computers in the left pane

2. Then click the
button to get disk data. The results are listed in the following table
a. Use
to mark low disk space rows

3. For your convenient, you can change or sort columns.
4. The Computer List is saved and you can reload it by clicking the
button.
5. You can export the disk data to a CSV file, by pressing the
button.
6. Press
to open the .chm help file.
You can download the setup file for the GUI version and the script file for the console version HERE.