One of the quick and easy ways to get a remote computer/server's disk space info is to use the PowerShell command GET-PSDrive.
You can create a batch file that runs the GET-PSDrive command remotely using PSTools' PSExec.
@echo off
psexec \\{ip_address} cmd /c powershell.exe "Get-PSDrive"
pause
No comments:
Post a Comment