Link to home
Start Free TrialLog in
Avatar of amdana1
amdana1

asked on

system logon script not working with autologon

I Sceduled a batch file to run at system startup and system logon, however, after I enabled autologon, it stops working.

The batch file delete inactive profiles.

Maybe there is a way to pause auto logon. Thank You.
Avatar of victornegri
victornegri

How did you configure autologon? It should still authenticate with the domain controller.
Avatar of amdana1

ASKER

This is for a xp home pc, i did this through the control panel.

The problem is, the batch file deletes the profile of the same user that is logging in. The profile is inactive before the auto logon.
So you want to run the batch file to delete the user's profile before the user logs on so they get a clean profile? If you had XP pro, I'd suggest just setting a mandatory user profile... don't know if that works on XP Home though. Rename ntuser.dat to ntuser.man in the user's home folder. That way you don't have to delete the profile every time.
ASKER CERTIFIED SOLUTION
Avatar of dmccurdy51
dmccurdy51

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
I agree with dmccurdy51, Delprof is the correct way to go.

Delprof /i /q
I'm having a similar issue to this, however, I'm working with XP professional machines (SP3) that are joined to a domain.  The workstations logon under a domain user account, however, the user logon script does not execute.  If I log off and then back on, the script runs without issue, so it definately has something to do with the autologon process (perhaps the machines are attempting to logon before the network is completely available, so maybe it is logging in under a cached profile?)  Any help you can provide would be greatly appreciated!  Thanks!
mustangtech

From: http://technet.microsoft.com/en-us/library/cc787386.aspx - Asynchronous Processing and Logon Optimization in Windows XP

Change Always wait for the network at computer startup and logon to the computer under Computer Configuration\Administrative Templates\System\Logon

It will make your machines boot slower, but you won't have to logon multiple times for the script to execute.
What type of script are you trying to run?  The original poster was trying to delete profiles.