![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| | |||||||
| | Vista - loginscript.vbs in Vista |
| |
| 01-07-2009 | #1 |
| | loginscript.vbs in Vista We are testing .vbs for login scripting. 99% of our install base is XP, one of my test users is on Vista. When logging in this morning, he received this error, but later when I had him manually run the script, it worked with no issue. Script: \\domain.local\netlogon\loginscript.vbs Line: 118 Char: 1 Error: The specified domain either does not exist or could not be contacted. Code: 8007054B Source: (null) Line 118 shows: strUserDN = objSysInfo.userName With a line prior in the script defining objSysInfo (Line 100): Set objSysInfo = CreateObject("ADSystemInfo") I can post more of the script if necessary, but the whole thing is over 500 lines so I don't want to do that unless I have to. Thanks! |
| My System Specs |
| 01-07-2009 | #2 |
| | Re: loginscript.vbs in Vista "Joe Blow" <joe@xxxxxx> wrote in message news:ufKn8xNcJHA.3948@xxxxxx Quote: > We are testing .vbs for login scripting. 99% of our install base is XP, > one of my test users is on Vista. When logging in this morning, he > received this error, but later when I had him manually run the script, it > worked with no issue. > > Script: \\domain.local\netlogon\loginscript.vbs > Line: 118 > Char: 1 > Error: The specified domain either does not exist or could not be > contacted. > Code: 8007054B > Source: (null) > > Line 118 shows: > strUserDN = objSysInfo.userName > > With a line prior in the script defining objSysInfo (Line 100): > Set objSysInfo = CreateObject("ADSystemInfo") > > I can post more of the script if necessary, but the whole thing is over > 500 lines so I don't want to do that unless I have to. > > Thanks! that possible? Or was the domain not available and he use cached credentials? -- Richard Mueller MVP Directory Services Hilltop Lab - http://www.rlmueller.net -- |
| My System Specs |
| 01-07-2009 | #3 |
| | Re: loginscript.vbs in Vista "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in message news:umFIdSOcJHA.1704@xxxxxx Quote: > > > The behavior suggests the user logged in locally and not to the domain. Is > that possible? Or was the domain not available and he use cached > credentials? > > -- > Richard Mueller > MVP Directory Services > Hilltop Lab - http://www.rlmueller.net > -- > over to his box and showed him how to manually run the script and it worked fine. Seems like I read of a method to force the login script to wait until the network is up/active prior to running. Does that ring a bell? I do have the script assigned via GPO in AD. |
| My System Specs |
| 01-07-2009 | #4 |
| | Re: loginscript.vbs in Vista "Joe Blow" <joe@xxxxxx> wrote in message news:eyTE1WOcJHA.1188@xxxxxx Quote: > > "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in > message news:umFIdSOcJHA.1704@xxxxxx Quote: >> >> >> The behavior suggests the user logged in locally and not to the domain. >> Is that possible? Or was the domain not available and he use cached >> credentials? >> >> -- >> Richard Mueller >> MVP Directory Services >> Hilltop Lab - http://www.rlmueller.net >> -- >> > over to his box and showed him how to manually run the script and it > worked fine. > > Seems like I read of a method to force the login script to wait until the > network is up/active prior to running. Does that ring a bell? I do have > the script assigned via GPO in AD. > scripts run with a full user token (representing group memberships), even though a limited token is used afterwards (due to UAC). I'm not sure if this applies here (as no permissions are required to retrieve objSysInfo.userName other than authenticated user), but here is a link discussing why drives mapped in a logon script cannot be viewed and how to fix: http://social.technet.microsoft.com/...-355e7245d632/ Basically, the logon script can map the drives but the user cannot view them. Or the logon script prompts for permission and the user doesn't see the prompt. One fix is a *.wsf file that basically runs the logon script as a separate task, so they run in what is called UAP mode. There's a good example in the link. The other fix is a group policy setting, but I think it only applies to Administrators. Let us know if this helps. If you want to try a delay, simply insert the following in the VBScript: Wscript.Sleep 1000 This pauses for 1000 milliseconds. I used to use 100 milliseconds in Win9x. -- Richard Mueller MVP Directory Services Hilltop Lab - http://www.rlmueller.net -- |
| My System Specs |
| 01-11-2009 | #5 |
| | Re: loginscript.vbs in Vista "Joe Blow" wrote: Quote: > > "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in > message news:umFIdSOcJHA.1704@xxxxxx Quote: > > > > > > The behavior suggests the user logged in locally and not to the domain. Is > > that possible? Or was the domain not available and he use cached > > credentials? > > > > -- > > Richard Mueller > > MVP Directory Services > > Hilltop Lab - http://www.rlmueller.net > > -- > > > over to his box and showed him how to manually run the script and it worked > fine. > > Seems like I read of a method to force the login script to wait until the > network is up/active prior to running. Does that ring a bell? I do have > the script assigned via GPO in AD. > You might have to turn off the Fast Logon Optimization feature in Vista? By Enabling the following policy setting (GPO): Computer Configuration\Administrative Templates\System\Logon\"Always wait for the network at computer startup and logon" (or manually, Go to Registrykey: HKEY_LOCAL_MACHINE\Software \Policies\Microsoft\Windows NT \CurrentVersion\Winlogon\ Edit the value: SyncForegroundPolicy = 1 ("REG_DWORD") Reboot the computer ) \Rems |
| My System Specs |
![]() |
| Thread Tools | |
| |
| Similar Threads for: loginscript.vbs in Vista | ||||
| Thread | Forum | |||
| Loginscript not running on Windows Vista | Vista General | |||