Script to know free disk space
Usually we deploy clients via Push deployment wizard where we need to know free disk space of the list of computers.
Here i am attaching the script to query disk space of List of computers
How it works
The script uses PSINFO from a free tool which uses port 445 to communicate to the client, which is used to communicate between the Server or client.
(Before starting the script download and keep the psinfo.exe to system32 folder)
- Copy the Computer list to Hostname.txt file
- Double click on Disk_Free_Space.CMD
- It will work one by one with the clients and append the result to Free_Disk.csv
- If port 445 is not open it will only list the Hostname
Please find the attached Zip file for scripts
This solution works for my environment