Install Solutions.net Community

Online community with helpful information relating to all aspects of Systems Management
Welcome to Install Solutions.net Community Sign in | Join | Help
in Search

Deploying Batch file tips...

Last post 04-24-2007, 8:16 AM by Yarbi. 0 replies.
Sort Posts: Previous Next
  •  04-24-2007, 8:16 AM 14

    Deploying Batch file tips...

    I have had a few customers come to me with this scenario and thought I would share it with anyone else that may be trying to do the same thing. They want to use the Remote Software Installation Utility to deploy a batch file that looks something like this:

    Start batch*****

    copy Q:\MyFiles\Setup.exe C:\TEMP

    start /wait C:\TEMP\Setup.exe /S

     

    End batch******

    Now this works when ran under a user account but not when deployed remotely. The reason is actually pretty simple, the mapped Q:\ drive is not available. Why you ask? Drives are mapped per-user and since you generally deploy under a different account than the one that is logged on the Q: drive is not accessible.

    To remedy you simply need to map the drive in your batch file with the proper credentials like this:

    net use Q: \\Server\Share /User:Domain\UserName password

    That's it!

    Filed under:
View as RSS news feed in XML
 
Powered by Community Server (Personal Edition), by Telligent Systems