Solved

How do I force Windows 7 startup to finish before logon is allowed?

Posted on 2011-09-08
5
1,261 Views
Last Modified: 2012-05-12
I am trying to get my Windows 7 workstations to wait until all the Startup policies have finished before allowing the user to logon.  My Windows 7 workstations don't behave this way.  To test this I've created a group policy that runs the following script:

Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim objOutput
Set objOutput = objFSO.CreateTextFile("C:\Test.txt", True)
objOutput.WriteLine(Now() & " - Sleeping for 5 minutes.")
WScript.Sleep 300000
objOutput.WriteLine(Now() & " - Finished sleeping.")
objOutput.Close

When the workstation is started, the logon screen is presented immediately.  If I log on and check the file that the script creates, only the first line appears.  The second line appears 5 minutes later.

How can I force Windows 7 workstations to wait until all startup wscripts are finished before allowing a user to logon?  I've enabled the 'Always wait for network at computer startup and logon", which didn't help.

0
Comment
Question by:CousinDupree
5 Comments
 
LVL 21

Accepted Solution

by:
Joseph Moody earned 500 total points
Comment Utility
Disable Run Startup Scripts asynchronously (if you have it enabled).
0
 

Author Comment

by:CousinDupree
Comment Utility
I don't have it enabled.

0
 
LVL 11

Expert Comment

by:X_layer
Comment Utility
0
 
LVL 66

Expert Comment

by:johnb6767
Comment Utility
Description of the Windows XP Professional Fast Logon Optimization feature
http://support.microsoft.com/kb/305293

Still applies to Win7, also helps to explain why the behavior is the way it is.....
0
 

Author Closing Comment

by:CousinDupree
Comment Utility
It turns out that Jmoody10 was on the right track.  In Windows 7, you need to set  'Run Startup Scripts Asynchronously' to disabled to get startup scripts to run synchronously.  Previous versions of Windows ran startup scripts synchronously by default, but Windows 7 runs them asynchronously by default.  Setting 'Computer Configuration->Policies->Administrative Templates->System->Scripts->Run Startup Scripts Asynchronously' to 'Disabled' fixed my issue.  Setting the policy setting to 'Not Configured' did NOT work!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

OfficeMate Freezes on login or does not load after login credentials are input.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now