Re: Logon Sequence

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 02/15/05


Date: Tue, 15 Feb 2005 10:31:57 +0100

Damian Davies wrote:

> Is it possible to keep the logon sequence for windows 2000 when
> upgrading to windows xp? you help is appreciated.
Hi

If you mean logon scripts etc. for domain computers, take a
look at the policies "Run Logon Scripts Synchronously" and
"Always wait for the network at computer startup and logon"

Description of the Windows XP Professional Fast Logon Optimization
Feature
http://support.microsoft.com/default.aspx?scid=kb;EN-US;305293

Scripts May Not Run Before Windows Explorer Starts Even Though
the "Run Logon Scripts Synchronously" Setting is Enabled
http://support.microsoft.com/default.aspx?scid=kb;EN-US;304970

You can suppress this behavior (set it back to how Win2k behaves):

With Group Policy:
Computer Configuration\Administrative Templates\System\Logon
\Always wait for the network at computer startup and logon

By registry edit; Set the value SyncForegroundPolicy to 1 (REG_DWORD)
in this key:

HKEY_LOCAL_MACHINE\Software
\Policies\Microsoft\Windows NT
\CurrentVersion\Winlogon\

With a VBScript:

'--------------------8<----------------------
Set oShell = CreateObject("WScript.Shell")
sRegValue = "HKLM\Software\Policies\Microsoft\Windows NT\" _
              & "CurrentVersion\Winlogon\SyncForegroundPolicy"

oShell.RegWrite sRegValue, 1, "REG_DWORD"

MsgBox "Please reboot the computer"
'--------------------8<----------------------

-- 
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx


Relevant Pages

  • Re: Lab Domain Layout - SOS
    ... So the Servers and Workstation GPOs DO have logon scripts assigned at ... But because the labadmin user is assigned ... >>Seperate logon scripts are defined for both the Server OU, and Workstation ...
    (microsoft.public.windows.server.active_directory)
  • Re: Lab Domain Layout - SOS
    ... So the Servers and Workstation GPOs DO have logon scripts assigned at ... But because the labadmin user is assigned ... >>Seperate logon scripts are defined for both the Server OU, and Workstation ...
    (microsoft.public.win2000.group_policy)
  • Roaming Profiles
    ... I am setting up A Windows 2003 Server (NOT using Active ... Windows 2000 Pro) to use roaming profiles and logon ... Where do I create and store the logon scripts? ...
    (microsoft.public.windows.server.general)
  • Re: General discussion around logon scripts
    ... looking at setting logon scripts to set file and printer shares as well as ... The language you use (batch or VBScript or whatever) depends on what you ... Policy to configure logon scripts. ... The most common tasks in logon scripts are mapping drives, mapping printers, ...
    (microsoft.public.windows.server.scripting)
  • Re: batch file
    ... Only logging on has to do with logon scripts. ... this is commonly because your XP machines aren't using an AD ... > that bootup on XP is too fast for startup batch files to take effect. ...
    (microsoft.public.scripting.vbscript)