Re: startup script on winxp

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 03/15/04


Date: Mon, 15 Mar 2004 20:31:40 +0100

BoomStick wrote:

> Hmm... this seems a little bit odd, but I do not have "Always wait for the
> network at comptuer startup and logon," as an option in Computer
> Configuration -> Administrative Templates -> System -> Logon

Hi

If I run gpedit.msc on a Windows XP computer, I find that setting.

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

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:

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"

--
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/community/scriptcenter/default.mspx


Relevant Pages

  • Re: startup script on winxp
    ... Description of the Windows XP Professional Fast Logon Optimization Feature ... oShell.RegWrite sRegValue, 1, "REG_DWORD" ... Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)
  • Re: startup script on winxp
    ... Description of the Windows XP Professional Fast Logon Optimization Feature ... oShell.RegWrite sRegValue, 1, "REG_DWORD" ... Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.win2000.group_policy)
  • Re: logon hours
    ... Hey thanks Torgeir. ... Windows XP to a domain and now I don't get a Welcome screen and the user is ... Yes I see what logon hours was all about but that term ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windowsxp.general)
  • Re: A domain controller could not be found for the specified domain
    ... > 4.8 as I connect to my Novell File Server and also logon ... when I logon I get the error message ... Windows Server 2003 DNS ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.win2000.general)
  • Re: problem mapping the network drive
    ... > after desktop is loaded up and user can use desktop before network-component ... Description of the Windows XP Professional Fast Logon Optimization Feature ... oShell.RegWrite sRegValue, 1, "REG_DWORD" ... Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)

Quantcast