Solved need to run a VBS script when a user logs into Win7

October 21, 2013 at 19:29:03
Specs: Windows 7 Enterprise 64bit, 8gb ram
How would one have windows auto run a VBS script when a user logs into a Win7 Enterprise workstation? The purpose of this script is to map their network drives based on their LDAP ID and to change their IE proxy.

See More: need to run a VBS script when a user logs into Win7

Report •

#1
October 22, 2013 at 07:51:29
✔ Best Answer
You can use the run option in the registry. Go to
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
and create an entry pointing to the VBS scripts

http://msdn.microsoft.com/en-us/lib...


Report •

#2
October 22, 2013 at 08:22:31
I put it under "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
" so that it would run after each user logs in. works great. now i just need to modify the script to change the proxy. Thanks for your help!!

Report •

#3
October 22, 2013 at 09:25:08
You're welcome, thanks for posting back letting us know it worked.

Report •

Related Solutions

#4
October 22, 2013 at 09:28:06
Slight modification to the above. There is something else that maps drives during a user startup, and is not allowing this script to run late enough. Is there a way to delay when this script runs?

Report •

#5
October 22, 2013 at 10:51:35
There are start-up delay programs available. I think I've used this one in the past - http://www.snapfiles.com/get/startd... but if this doesn't suit your needs, do a Google search for "start-up delay programs" and you will get a ton of hits for other programs.

You might also be able to create a delay action in the VBS script you are running, I'm not a programmer so I couldn't tell you exactly but you might ask about this in the Programming section of this site.
http://www.computing.net/forum/prog...

message edited by THX 1138


Report •

Ask Question