JamesonJendreas
asked on
Remote DLL Register
Ok, Trying to register some DLLs remotely. I am using sysinternals psexec, and reserv32. When I attempt to run my script I wrote for this, I get:
"resvr32 exited on [computer] with error code 3"
The original DLL's are on my machine (where the script is running) under c:\dll\
Here is the script
REM Make Local DLL Path
mkdir \\192.168.2.112\C$\dll
mkdir \\192.168.2.50\c$\dll
mkdir \\192.168.2.143\c$\dll
mkdir \\192.168.2.125\c$\dll
REM Copy DLL's
xcopy c:\dll\*.dll \\192.168.2.112\C$\dll
xcopy c:\dll\*.dll \\192.168.2.50\c$\dll
xcopy c:\dll\*.dll \\192.168.2.143\c$\dll
xcopy c:\dll\*.dll \\192.168.2.125\c$\dll
REM Register DLL
psexec \\192.168.2.112 -u domain\administrator -p (password) regsvr32 /s c:\dll\*.dll
psexec \\192.168.2.125 -u domain\administrator -p (password) regsvr32 /s c:\dll\*.dll
psexec \\192.168.2.143 -u domain\administrator -p (password) regsvr32 /s c:\dll\*.dll
psexec \\192.168.2.50 -u domain\administrator -p (password) regsvr32 /s c:\dll\*.dll
The directories create correctly, and files copy, but the do not register (get error 3 on each), which as far as I can tell is a path not found error.
Any suggestions would be greatly appreciated
Thanks,
JJ
"resvr32 exited on [computer] with error code 3"
The original DLL's are on my machine (where the script is running) under c:\dll\
Here is the script
REM Make Local DLL Path
mkdir \\192.168.2.112\C$\dll
mkdir \\192.168.2.50\c$\dll
mkdir \\192.168.2.143\c$\dll
mkdir \\192.168.2.125\c$\dll
REM Copy DLL's
xcopy c:\dll\*.dll \\192.168.2.112\C$\dll
xcopy c:\dll\*.dll \\192.168.2.50\c$\dll
xcopy c:\dll\*.dll \\192.168.2.143\c$\dll
xcopy c:\dll\*.dll \\192.168.2.125\c$\dll
REM Register DLL
psexec \\192.168.2.112 -u domain\administrator -p (password) regsvr32 /s c:\dll\*.dll
psexec \\192.168.2.125 -u domain\administrator -p (password) regsvr32 /s c:\dll\*.dll
psexec \\192.168.2.143 -u domain\administrator -p (password) regsvr32 /s c:\dll\*.dll
psexec \\192.168.2.50 -u domain\administrator -p (password) regsvr32 /s c:\dll\*.dll
The directories create correctly, and files copy, but the do not register (get error 3 on each), which as far as I can tell is a path not found error.
Any suggestions would be greatly appreciated
Thanks,
JJ
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try the -w switch.....
psexec \\192.168.2.50 -u domain\administrator -p (password) -w "c:\dll\" c:\windows\system32\regsvr 32 /s *.dll
psexec \\192.168.2.50 -u domain\administrator -p (password) -w "c:\dll\" c:\windows\system32\regsvr
LOL... So it still isnt working?
Save the code snippet as register.bat, in your PSEXEC working directory. save the dll's as well.....
psexec \\192.168.2.50 -u domain\administrator -p (password) -c register.bat
Thought I would offer an easier method..... Just create a batch file in the context of the renmote machine, and use the -c switch....
psexec \\192.168.2.50 -u domain\administrator -p (password) -c register.bat
Thought I would offer an easier method..... Just create a batch file in the context of the renmote machine, and use the -c switch....
REM Make Local DLL Path
mkdir c:\dll
REM Copy DLL's
xcopy "\\server\share\*.dll" "c:\dll\"
REM Register DLL's
regsrv32 /s *.dll
exit
Or try this.....
Try the -w switch.....
psexec \\192.168.2.50 -u domain\administrator -p (password) -w "c:\dll\" c:\windows\system32\regsvr 32 /s *.dll
Try the -w switch.....
psexec \\192.168.2.50 -u domain\administrator -p (password) -w "c:\dll\" c:\windows\system32\regsvr
Wrong one....
See??
:^)
See??
:^)
ASKER