Networking Forums

Networking Forums > Computer Networking > Windows Networking > Is there a reason to store Logon Script in one of these places...

Reply
Thread Tools Display Modes

Is there a reason to store Logon Script in one of these places...

 
 
Kelvin
Guest
Posts: n/a

 
      08-06-2009, 06:25 PM
I've been storing my logon scripts (batch files) in this folder.
"C:\WINDOWS\SYSVOL\sysvol\Domain.local\scripts "

I'm in the process of creating a logon script (VBScript based) and when I
was going to attach it to the GPO I noticed that the browse buttom opens to
here by default.
"C:\WINDOWS\SYSVOL\sysvol\Domain.local\Policies\{F 312224C-9044-4003-BF9D-B3E350E3D44C}\User\Scripts\Logon"

Is there a right or wrong place to store the logon scripts?
I seem to recall that there is synchronization from some part of this
directory structure between the Domain Controller and backup Domain
Controller...


Thanks

Kelvin


 
Reply With Quote
 
 
 
 
Marcin
Guest
Posts: n/a

 
      08-06-2009, 06:34 PM
Kelvin,
either is acceptable - although the first method (leveraging the Netlogon
share) is probably less common (since this is a legacy approach, which does
not rely on Group Policies, but instead involves modifying Logon script user
attribute via Profile tab of user's Properties dialog box in Active
Directory Users and Computers). Group Policies give you more flexibility
(multiple logon scripts - if needed) and improved manageability...

hth
Marcin

"Kelvin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've been storing my logon scripts (batch files) in this folder.
> "C:\WINDOWS\SYSVOL\sysvol\Domain.local\scripts "
>
> I'm in the process of creating a logon script (VBScript based) and when I
> was going to attach it to the GPO I noticed that the browse buttom opens
> to here by default.
> "C:\WINDOWS\SYSVOL\sysvol\Domain.local\Policies\{F 312224C-9044-4003-BF9D-B3E350E3D44C}\User\Scripts\Logon"
>
> Is there a right or wrong place to store the logon scripts?
> I seem to recall that there is synchronization from some part of this
> directory structure between the Domain Controller and backup Domain
> Controller...
>
>
> Thanks
>
> Kelvin
>



 
Reply With Quote
 
Kelvin
Guest
Posts: n/a

 
      08-06-2009, 06:49 PM
Thanks for the reply, I'm going to use the script in my GPO so will locate
the script where AD looks for it by default...

Thanks

Kelvin


"Marcin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Kelvin,
> either is acceptable - although the first method (leveraging the Netlogon
> share) is probably less common (since this is a legacy approach, which
> does not rely on Group Policies, but instead involves modifying Logon
> script user attribute via Profile tab of user's Properties dialog box in
> Active Directory Users and Computers). Group Policies give you more
> flexibility (multiple logon scripts - if needed) and improved
> manageability...
>
> hth
> Marcin
>
> "Kelvin" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> I've been storing my logon scripts (batch files) in this folder.
>> "C:\WINDOWS\SYSVOL\sysvol\Domain.local\scripts "
>>
>> I'm in the process of creating a logon script (VBScript based) and when I
>> was going to attach it to the GPO I noticed that the browse buttom opens
>> to here by default.
>> "C:\WINDOWS\SYSVOL\sysvol\Domain.local\Policies\{F 312224C-9044-4003-BF9D-B3E350E3D44C}\User\Scripts\Logon"
>>
>> Is there a right or wrong place to store the logon scripts?
>> I seem to recall that there is synchronization from some part of this
>> directory structure between the Domain Controller and backup Domain
>> Controller...
>>
>>
>> Thanks
>>
>> Kelvin
>>

>
>



 
Reply With Quote
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      08-06-2009, 07:04 PM
If you use the GPO, then the folder it uses by default is the correct one.
It becomes very difficult to navigate to that folder in Windows Explorer, so
use the GPO edit GUI. This is explained a bit in this logon script FAQ:

http://www.rlmueller.net/LogonScriptFAQ.htm

One point. If you specify a logon script in a GPO, and also have a logon
script specified on the "Profile" tab of ADUC, both will run. The GPO is
preferred, as long as all clients are Windows 2000 or above.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--

"Kelvin" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Thanks for the reply, I'm going to use the script in my GPO so will locate
> the script where AD looks for it by default...
>
> Thanks
>
> Kelvin
>
>
> "Marcin" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Kelvin,
>> either is acceptable - although the first method (leveraging the Netlogon
>> share) is probably less common (since this is a legacy approach, which
>> does not rely on Group Policies, but instead involves modifying Logon
>> script user attribute via Profile tab of user's Properties dialog box in
>> Active Directory Users and Computers). Group Policies give you more
>> flexibility (multiple logon scripts - if needed) and improved
>> manageability...
>>
>> hth
>> Marcin
>>
>> "Kelvin" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> I've been storing my logon scripts (batch files) in this folder.
>>> "C:\WINDOWS\SYSVOL\sysvol\Domain.local\scripts "
>>>
>>> I'm in the process of creating a logon script (VBScript based) and when
>>> I was going to attach it to the GPO I noticed that the browse buttom
>>> opens to here by default.
>>> "C:\WINDOWS\SYSVOL\sysvol\Domain.local\Policies\{F 312224C-9044-4003-BF9D-B3E350E3D44C}\User\Scripts\Logon"
>>>
>>> Is there a right or wrong place to store the logon scripts?
>>> I seem to recall that there is synchronization from some part of this
>>> directory structure between the Domain Controller and backup Domain
>>> Controller...
>>>
>>>
>>> Thanks
>>>
>>> Kelvin
>>>

>>
>>

>
>



 
Reply With Quote
 
Paul Bergson [MVP-DS]
Guest
Posts: n/a

 
      08-07-2009, 12:16 PM
I agree with the others, place the script within the gpo.

--
Paul Bergson
MVP - Directory Services
MCTS, MCT, MCSE, MCSA, Security+, BS CSci
2008, 2003, 2000 (Early Achiever), NT4
Microsoft's Thrive IT Pro of the Month - June 2009

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup This
posting is provided "AS IS" with no warranties, and confers no rights.

"Kelvin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've been storing my logon scripts (batch files) in this folder.
> "C:\WINDOWS\SYSVOL\sysvol\Domain.local\scripts "
>
> I'm in the process of creating a logon script (VBScript based) and when I
> was going to attach it to the GPO I noticed that the browse buttom opens
> to here by default.
> "C:\WINDOWS\SYSVOL\sysvol\Domain.local\Policies\{F 312224C-9044-4003-BF9D-B3E350E3D44C}\User\Scripts\Logon"
>
> Is there a right or wrong place to store the logon scripts?
> I seem to recall that there is synchronization from some part of this
> directory structure between the Domain Controller and backup Domain
> Controller...
>
>
> Thanks
>
> Kelvin
>



 
Reply With Quote
 
Ace Fekay [MCT]
Guest
Posts: n/a

 
      08-07-2009, 10:37 PM

"Richard Mueller [MVP]" <rlmueller-(E-Mail Removed)> wrote in
message news:%23I$(E-Mail Removed)...
> If you use the GPO, then the folder it uses by default is the correct one.
> It becomes very difficult to navigate to that folder in Windows Explorer,
> so use the GPO edit GUI. This is explained a bit in this logon script FAQ:
>
> http://www.rlmueller.net/LogonScriptFAQ.htm
>


Richard,

I've used that method (browse button in the GPO script location) for years.
It's easy instead of trying to figure out which GPO in SYSVOL and which
subfolder, to put it in.


--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Please reply back to the newsgroup or forum to benefit from collaboration
among responding engineers, and to help others benefit from your resolution.

Ace Fekay, MCT, MCTS Exchange, MCSE, MCSA 2003 & 2000, MCSA Messaging
Microsoft Certified Trainer

For urgent issues, please contact Microsoft PSS directly. Please check
http://support.microsoft.com for regional support phone numbers.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NET USE logon script Tx2 Home Networking 11 03-13-2007 10:29 PM
GP logon script Stuart Jeffrey Windows Networking 1 09-12-2004 08:31 PM
Logon Script Eddy Melsbach Windows Networking 2 02-18-2004 02:18 PM
Logon script Alan Crawford Windows Networking 0 12-26-2003 10:45 PM
Re: Script error in My Network Places Carey Holzman Windows Networking 0 08-09-2003 09:22 PM



1 2 3 4 5 6 7 8 9 10 11