• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 744
  • Last Modified:

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.
0
amdana1
Asked:
amdana1
  • 2
  • 2
  • 2
  • +2
1 Solution
 
victornegriCommented:
How did you configure autologon? It should still authenticate with the domain controller.
0
 
amdana1Author Commented:
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.
0
 
victornegriCommented:
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.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
dmccurdy51Commented:
I would use delprof.exe do delete inactive profiles.  If will detect if the user is logged in or not.  It will also not delete the default user or all users folder.
0
 
bkoehler-mprCommented:
I agree with dmccurdy51, Delprof is the correct way to go.

Delprof /i /q
0
 
mustangtechCommented:
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!
0
 
bkoehler-mprCommented:
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.
0
 
dmccurdy51Commented:
What type of script are you trying to run?  The original poster was trying to delete profiles.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now