[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

computer startup script not running before automatic logon

I have a computer startup script defined in a group policy.

This script does a few things, one of which is it sets the autologon information to automatically log a specific user on to the computer.

eg: it modifies
SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultUserName etc...

This script needs to be run before any user logs on.

The first time this script runs, it runs before the computer gets to the "logon box", which is great. It then sets the autologon. (at this stage, I will get the computer to reboot, just haven't implemented it yet, so I reboot it manually)

After it reboots, the system automatically logs the user on and the computer startup script is run in the background.

My problem is, I need the script to run *before* the user gets logged on.
I would have thought the autologon would run *after* the computer startup scripts, but apparently this isn't the case.

Is there any way around this?

can you get a computer startup script to log a user on to the system? or do you have to use the autologon key as stated above?
0
DFPITC
Asked:
DFPITC
2 Solutions
 
acl-puzzCommented:
see if it can give you an idea on what you are looking for

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Q_22702926.html
0
 
B HCommented:
where does the script live at, on the computer or in a group policy?

in the group policy, you can specify computer > ...  > scripts > startup
this will run when the computer starts up

you can also specify user > ... >  scripts > logon
this runs when the user logs in

or, if it lives on the computer, you'll need to create the startup script you want as a scheduled task, set to run (with credentials) "when my computer starts".  the one you want for the user login event, you can put into another scheduled task or simply in the startup folder, or currentversion\run registry location
0
 
johnb6767Commented:
Description of the Windows XP Professional Fast Logon Optimization ...
http://support.microsoft.com/kb/305293

Try disabling this.....
0
 
DFPITCAuthor Commented:
Yay, should have searched more thoroughly
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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