Scripting Question

K1000: Mapping Network Drives via Scripting

08/13/2014 4688 views

I am trying to run a script that allows me to run it on next client check in. Currently I have a script that I can manually run that first places a bat file in a directory and then runs that bat file. The bat file is a simple net use command (net use x: server/share). This seems to work well other than the fact that I cannot run it on client check in. If I set the script as an Offline script, I no longer have the Windows Run As option. Without this option, the batch file runs, however, it now hangs and requires the user to input their credentials in a command prompt, which is not ideal. Any ideas on how to accomplish mapping a network drive on next client check in?
0 Comments   [ + ] Show comments


All Answers

enforce a registry setting and put the map command in hkcu\software\microsoft\windows\currentversion\run or runonce keys.  You can run the script as the user, they get registry mod and on the next boot the mapping runs
Answered 08/14/2014 by: SMal.tmcc
Red Belt

  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ