I wrote and compiled the below module that maps the z: drive to a remote server, then added the executable as a service via INSTSRV. But when I attempt to start the service, it errors saying it can't start the service. What could be causing this?
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run ("net use z: \\server\c$ /persistent:yes")