| |
nicosi157
Posts: 1
Score: 0
Joined: 8/28/2008
Status: offline
|
Hi, I'd like to be able get remote PC folder size. 1. Remote PC is not a Domain member, so I need to point access credentials in a script, but I do not know where I need to connect using ConnectServer method... here is part of the script: Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") Set objSWbemServices = objSWbemLocator.ConnectServer _ (strComputer, "root\cimv2", "user_name", "pasword") I have this connection "objSWbemServices" working but I do not know how to make it working with "Scripting.FileSystemObject" Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder(\\remote-PC\C$\Folder1) Wscript.Echo objFolder.Size thanks
|
|