Re: Mapped drives don't connect....

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 11/21/03


Date: Fri, 21 Nov 2003 06:19:38 +0100

Q-Man wrote:

> I am not sure what you mean. I have the logon script in a
> file that I double clicked once and the mapped drives
> always connected after that. Where can I find "Always
> wait for the network at computer startup and logon" to
> change it so that the Optimization feature is turned off?

With gpedit.msc I would think.

But instead, just put the following vbscript in a text file with the file
extension .vbs and then run it (double-click on the file):

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/scriptcenter


Relevant Pages

  • Re: HOW DO YOU STOP Fast Logon Optimization
    ... > computer startup and logon ... You can put the following vbscript in a text file with the file ... oShell.RegWrite sRegValue, 1, "REG_DWORD" ... Microsoft MVP Scripting and WMI, ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Running Login Script after establishing a VPN connection
    ... scripting, so everything is slow going for me. ... mapped drives and commented lines. ... Use copy & paste to copy the code into a batch file. ... removing the word "echo" on Line 09. ...
    (microsoft.public.windows.server.scripting)
  • Re: Writing REG_BINARY registry value
    ... oShell.RegWrite sRegValue, CLng, "REG_BINARY" ... You can use WMI to do this though: ... SetBinaryValue Method of the StdRegProv Class ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)
  • Re: Running Login Script after establishing a VPN connection
    ... I have to figure out how to parse the file correctly. ... scripting, so everything is slow going for me. ... "I suppose I could call up the text file with the actuall mapped drives ... and parse it for UNC paths. ...
    (microsoft.public.windows.server.scripting)
  • 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)