Jump to content

[Help] Force to wait network before open session


Recommended Posts

Posted

Hi all :hello:

I want to wait network before Windows XP open session, same in Win2k in fact.

I have Enabled "Always wait network before open session" from gpedit.msc

I have check regkey

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Winlogon]
"SyncForegroundPolicy"=dword:00000001

But it doesn't seem to work, I have tried to disable Welcome screen without success.

To test if it's okay, I have a basic batch with a "net use" command. On Windows 2000 works perfectly without problems, but on XP because network isn't really ready "net use" isn't done, I must make a pause ... but I hate that method.

gunsmokingman has made a vbscript but in fact is too complexe because WMI check all connections, we must select the good and ....

The best is to disable the "Fast logon" of Windows XP :thumbup

Anyone has tried the policie with success ? I hope it doesn't necessary to be in a domain.


Posted

Never liked it, especially with wireless connections making things worse. That's why my vbscript was created, and you run it in your logon script. Trust me, it's REALLY basic, but it works:

Dim sTestPath
Dim intCount
Dim objnet

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
Set objVolatileEnv = objShell.Environment("VOLATILE")
Set objnet = CreateObject("Wscript.Network")

' An UNC path here that will be available when network connection is in place
sTestPath = "\\server\share
intCount = 1

' test on volatile environment variable to avoid running logon script
' if the user has already run the logon script.
If Not objVolatileEnv("LogonScript") = "Done" Then

Do Until objFSO.FolderExists(sTestPath)
' sleep 5 seconds
WScript.Sleep 5000
intCount = intCount + 1
If intCount = 240 Then
MsgBox "Unable to connect to network share for 20 minutes. Please notify your network administrator."
Exit Do
End If
Loop

' share/folder available on server now, so continue
objnet.MapNetworkDrive "Z:", "\\server\share","True","domain\user","password"

End If

Posted

thx cluberti I have already found your vbscript and I will use similar method if nobody has solution to disable fast logon of windows xp :(

Posted

Okay, I have make test.

I have install fresh windows xp, I have integrate to my domain test.

At reboot and logon on local machine (no more domain)

Fast logon is always enabled.

After in gpedit.msc I have set the policie "Waiting network before open session"

After reboot it works !!!

Now the goal is to find how to fake windows for it thinks it was integrated to a domain before (excuse me for my language).

If anyone has an advice, come one !

Posted

Okay, if we remove domain from the system, Fast logon is re-enabled ...

I will search a method to hide domain from classic logon ui.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...