Oh, BTW, use instsrv.exe (from sresource kit, still) to install SrvAny as a service. To configure SrvAny.exe, go into the registry and create a _KEY_ named Parameters under the Service's key and two value :
Application --> REG_SZ (REG_EXPAND_SZ won't work (dumbass))
Value: C:\WINNT\System32\cmd.exe
AppParameters --> REG_SZ
Value: /C C:\Scripts\mapdrives.cmd
The script will probably shutdown the service itself (because of /C).
Keep in mind that the credentials used are those associated to the domain user account, so services like RSH will use that credentials to validate permissions to the network drive, files & directories.
Anyhow, the domain user account may be also required to open a session on the remote computer (depending if it's a domain controller or not)
