I'm trying this, but the service isn't working...

code:
	$destdir="\\$name\c$$\Winnt"
copy "$tools\rcmdsvc.exe" "$destdir"
shell "cmd /c $tools\xnet.exe INSTALL \\$name\Rcmd /b:C:\WINNT\rcmdsvc.EXE /u:@domain\@userid /p:$password"
shell "cmd /c $tools\xnet.exe start \\$name\Rcmd"
shell "cmd /c $tools\rcmd.exe \\$name net use $dl: $svrpath"
shell "cmd /c $tools\xnet.exe stop \\$name\Rcmd"
shell "cmd /c $tools\xnet.exe remove \\$name\Rcmd /y"
del "$destdir\rcmdsvc.exe"

quote:
Service installed successfully.

Starting Rcmd
Request completed successfully.
Error - Failed to connect to <\\wheelerc_2nd>, system not found or service not a
ctive
Stopping Rcmd
Stopping the service failed...[1062 / service not active]

Service successfully removed.

_________________________
How to ask questions the smart way <-----------> Before you ask