Hamins Posted August 3, 2005 Share Posted August 3, 2005 Hi,I have created a .vbs login script to map network shares to drives. I placed the login script (Loginscript.vbs) into the NETLOGON share on the 2003 Domain controller, and also added the following folder path to the Login Script section of the user profile : \\server\Netlogon\LoginScript.vbs.However, when the user's login the script does not run at all. I know this cause the script displays a message box, and maps the drives. When the user logs in, none of this happens. However, when I double-click on the script (LoginScript.vbs), it works fine.Also, is ther any way to map several shared folder from different volumes, to one drive, with or without using script?Please I need an answer to first question, ASAP.Thanx Link to comment Share on other sites More sharing options...
jondercik Posted August 3, 2005 Share Posted August 3, 2005 It is best to assign logon scripts using group policies under Windows 2000+. That is the location it looks for the logon scripts in first. Link to comment Share on other sites More sharing options...
jpatto Posted August 3, 2005 Share Posted August 3, 2005 try using LoginScript.vbs under the Login Script section to see if that works (i.e. not the full UNC name)Im not too sure if there is another way round mapping drives other than using scripts. Link to comment Share on other sites More sharing options...
Hamins Posted August 3, 2005 Author Share Posted August 3, 2005 (edited) It is best to assign logon scripts using group policies under Windows 2000+. That is the location it looks for the logon scripts in first.<{POST_SNAPBACK}>I would've done that. However, There are a few users in the group that have a different login script. Edited August 3, 2005 by Hamins Link to comment Share on other sites More sharing options...
chilifrei64 Posted August 3, 2005 Share Posted August 3, 2005 Have you checked the event log on the workstations you are applying this to. Either 1 you get a cannot fine ......loginscript.vbs which means you have hte wrong path setoryou get a general error in the security log stating bad username or password/computer not trustedoryou dont see anything which means that either the script is running perfectly with no problems(not the case) or it is not applied correctly using group policy. Did you do any security filtering on this GPO?What Version GPO are you using(2000/2003/Local)when you are setting the path to the login script... are you using the UNC path to the script? Link to comment Share on other sites More sharing options...
Hamins Posted August 3, 2005 Author Share Posted August 3, 2005 Have you checked the event log on the workstations you are applying this to. Either 1 you get a cannot fine ......loginscript.vbs which means you have hte wrong path setoryou get a general error in the security log stating bad username or password/computer not trustedoryou dont see anything which means that either the script is running perfectly with no problems(not the case) or it is not applied correctly using group policy. Did you do any security filtering on this GPO?What Version GPO are you using(2000/2003/Local)when you are setting the path to the login script... are you using the UNC path to the script?<{POST_SNAPBACK}>hmmm.... I have'nt quite checked the eventlog on the local PC.However, I'm quite sure that the login script is NOT running at all. I've not applied it using GPOs. I'm using the user profiles. The path I have mentioned is the UNC path. It's stored the login script in the NETLOGON share on the 2003 server. It looks like...\\Server01\NETLOGON\LoginScript.vbs Link to comment Share on other sites More sharing options...
At0mic Posted August 3, 2005 Share Posted August 3, 2005 Make a batch file with a .bat extension like login.bat for example. Put it into \\server\Netlogon\ and in a user profile type in \\server\Netlogon\login but do NOT use the file extension because it wont work. In the batch file write START \\server\Netlogon\LoginScript.vbs Link to comment Share on other sites More sharing options...
Hamins Posted August 3, 2005 Author Share Posted August 3, 2005 Make a batch file with a .bat extension like login.bat for example. Put it into \\server\Netlogon\ and in a user profile type in \\server\Netlogon\login but do NOT use the file extension because it wont work. In the batch file write START \\server\Netlogon\LoginScript.vbs<{POST_SNAPBACK}>Yes, tried running a login script with with a .bat extension. But, that did not start up either..... and Yes, I did not add the .bat extension. Link to comment Share on other sites More sharing options...
At0mic Posted August 3, 2005 Share Posted August 3, 2005 Yes, tried running a login script with with a .bat extension. But, that did not start up either..... and Yes, I did not add the .bat extension.<{POST_SNAPBACK}>ok try creating a new folder and share it to everyone and put the login script in that folder. put the new path in users profiles. Link to comment Share on other sites More sharing options...
Porn Loader Posted August 4, 2005 Share Posted August 4, 2005 ok this is how my company is set up. it may not be pretty but it works. hope this helps .all batch and vb scripts are in C:\WINDOWS\SYSVOL\sysvol\my_domain\scripts, in AD i have the user profiles set to call different batch files, example:@echo offwscript.exe //Nologo %0\..\mkelogon.vbswhich obviously calls the mkelogon script. Link to comment Share on other sites More sharing options...
Hamins Posted August 4, 2005 Author Share Posted August 4, 2005 ok Atomic/Porn Loader,Will try out your suggestions. Thnx everyone!! Link to comment Share on other sites More sharing options...
nivst Posted August 4, 2005 Share Posted August 4, 2005 I have a similar problem, with a small difference.. my login scripts run perfectly on one computer (XP with no SP, desktop computer) but doesn't run at all at 4 laptops with XP with SP2.Now, I've disabled the security center on the SP2 laptops but with no result.Any ideas? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now