Guest_imported
New member
- Jan 1, 1970
- 0
I am trying to use this code:
set wmiService = GetObject ("winmgmts:\\localhost"
set disk = GetObject ("winmgmts:Win32_LogicalDisk='C:'"
WScript.Echo "Size = " + Disk.Size
For local computer it works just fine. But how do i change it to be able to get disk space from remote pc?
Any ideas?
set wmiService = GetObject ("winmgmts:\\localhost"
set disk = GetObject ("winmgmts:Win32_LogicalDisk='C:'"
WScript.Echo "Size = " + Disk.Size
For local computer it works just fine. But how do i change it to be able to get disk space from remote pc?
Any ideas?