|
| |||||||||
| Tags: script |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| GP Logon Script works first time at second user logon
Hello Discussion Group, i have a GPO with a logon script in the user section. The script sets some environment variables with SETX to the user environment. The curious thing is, that the variables, set trough the script, arent available if the user logs on the 1st time. Only after his 2nd logon attempt on the terminal server. The point on 1st logon is, there is no usere profile available! Has this something to do why the variables couldn't be set, after the 1st logon attempt? With the first logon i mean, no user profile exist on the server. Is this the cause why the env vars couldn't be set on the first logon attempt?. Thanks in advance for your ideas and comments :-) -- regards from Germany Schoen, Roland --------------------------- [Systemadministrator] |
|
#2
| |||
| |||
| Re: GP Logon Script works first time at second user logon
Roland, make sure that you disable Fast Logon Optimization (http://support.microsoft.com/kb/305293) hth Marcin "Roland Schoen" <RolandSchoen@discussions.microsoft.com> wrote in message news:E4B9D862-5CE7-429D-BCF4-DEA7E353744D@microsoft.com... > Hello Discussion Group, > > i have a GPO with a logon script in the user section. The script sets some > environment variables with SETX to the user environment. > > The curious thing is, that the variables, set trough the script, arent > available if the user logs on the 1st time. Only after his 2nd logon > attempt > on the terminal server. > > The point on 1st logon is, there is no usere profile available! Has this > something to do why the variables couldn't be set, after the 1st logon > attempt? > > With the first logon i mean, no user profile exist on the server. Is this > the cause why the env vars couldn't be set on the first logon attempt?. > > Thanks in advance for your ideas and comments :-) > -- > regards from Germany > Schoen, Roland > --------------------------- > [Systemadministrator] > |
|
#3
| |||
| |||
| RE: GP Logon Script works first time at second user logon
I think you must enable the option: 'Run logon scripts asc', under computer conf > admini templates > system > script '------------------- Directs the system to wait for the logon scripts to finish running before it starts the Windows Explorer interface program and creates the desktop. If you enable this setting, Windows Explorer does not start until the logon scripts have finished running. This setting ensures that logon script processing is complete before the user starts working, but it can delay the appearance of the desktop. If you disable this setting or do not configure it, the logon scripts and Windows Explorer are not synchronized and can run simultaneously. This setting appears in the Computer Configuration and User Configuration folders. The setting set in Computer Configuration takes precedence over the setting set in User Configuration. '------------------- BR - Frank "Roland Schoen" wrote: > Hello Discussion Group, > > i have a GPO with a logon script in the user section. The script sets some > environment variables with SETX to the user environment. > > The curious thing is, that the variables, set trough the script, arent > available if the user logs on the 1st time. Only after his 2nd logon attempt > on the terminal server. > > The point on 1st logon is, there is no usere profile available! Has this > something to do why the variables couldn't be set, after the 1st logon > attempt? > > With the first logon i mean, no user profile exist on the server. Is this > the cause why the env vars couldn't be set on the first logon attempt?. > > Thanks in advance for your ideas and comments :-) > -- > regards from Germany > Schoen, Roland > --------------------------- > [Systemadministrator] > |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "GP Logon Script works first time at second user logon" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 0x80070569: Logon failure: the user has not been granted the requested logon type at this computer. | Eridano@hotmail.com | Window 2000 Help | 9 | 08-06-2011 04:21 PM |
| Dumping logon name and logon script values to a text file - blank logon script field | Phil McNeill | Windows Server Help | 3 | 17-08-2010 10:06 PM |
| Services Fail with Error Logon failure: the user has not been granted the requested logon type at this computer. | Zaz | Windows Server Help | 5 | 06-11-2009 05:32 PM |
| On one PC no user runs logon script | MC Murphy | Active Directory | 7 | 29-06-2009 04:43 PM |
| Logon Failure: the user has not granted the requested logon type at this | Junior | Windows Vista Network | 2 | 27-11-2008 07:23 AM |