Link to home
Start Free TrialLog in
Avatar of Premiernc
Premiernc

asked on

Login script application log event error

Hey Guys,
I have a standard login script in the netlogon share. This runs fine for many machines etc. It has problems with various users. I have the script being executed via the profile page with only the name "login.bat" in the box. I have noticed on many XP and 2000 machines, in the APP log, I get a userinit error 1000 saying that

Windows could not execute c:\winnt\sysvol\sysvol\domain\scripts\login.bat. The system cannot find the fle specified.

Why does it reference c: at all from the workstation? It should be a UNC designation at  time of login, is that correct?

Also, if I change to a test login script in the same location, change it in the user profile page, why does it not run?
There is no script designated int GP.
Thanks a million
Avatar of Premiernc
Premiernc

ASKER

Sorry guys, I was just exploring the Default domain policy and it appears there is a login script for users assigned in there. It appears when you browse for your login script to add to the domain, it inserts the c:\winnt\sysvol\sysvol\domain\scripts\login.bat path. This could be the error I get on the workstations. What should the line read in the GP?
That is where you want your login scripts in my opinion - Then you can assign by GPO. Assigning at the profile isnt efficient - depending on number of users - OU etc. my .02
ASKER CERTIFIED SOLUTION
Avatar of Debsyl99
Debsyl99

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hey Deb,
When I remove the .bat from the netlogon share, will I get all kinds of errors if I do not take out the .bat in thier profile setup?
Hi

Good question and I don't honestly know as it's a long time since I've done that one - I doubt you'll get lots of errors but you'll probably get a complaint or two in the event logs that it couldn't find the file. Any reason you don't want to take it out of the profile?

If you want to wait I can run it quickly on my test network tomorrow, but just try it for one and see what happens...