Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags:

Sponsored Links



GP Logon Script works first time at second user logon

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-11-2009
Roland Schoen
 
Posts: n/a
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]

Reply With Quote
  #2  
Old 05-11-2009
Marcin
 
Posts: n/a
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]
>



Reply With Quote
  #3  
Old 09-11-2009
Frank Keunen
 
Posts: n/a
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]
>

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory


Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 09:54 PM.