|
Answer» Hi Hi.
Via a batch file in my own server,I want to check if a remote server has the IIS registry KEY and export the registry contents to a file.
I can run the follow script successfully in the remote server itself(i.e. server123) .but when the call comes from my own server it just doesn't work. Any IDEAS?
start \\server123\c$\windows\regedit.exe /e "\\server123\c$\customchecks\iis.txt" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp"
Batch files are not designed to run on remote machines. Any of the Windows scripting languages can create a Controller object which can create a remote process with the execute METHOD. You may also find PsTools helpful. I'm pretty SURE the computers in question must be members of a domain. Workgroup networks need not apply.
8-)What version of Windows is "your own" server running? If it is Windows 2003 (or Windows XP), try this: Code: [Select]reg /query "\\server123\hklm\SOFTWARE\Microsoft\InetStp"
|