Logon script location??

  • Thread starter Thread starter MLK
  • Start date Start date
M

MLK

Where should the logon scripts be stored on the Win2k Domain Controllers?
The netlogon share? Can .bat files still be used ?

Thanks.
 
They are stored in the netlogon share, and the common custom is to use the
..CMD extension for NT-based clients and .BAT for Win9x clients.

--
Richard G. Harper [MVP Shell/User] (e-mail address removed)
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ... http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm
 
MLK said:
Where should the logon scripts be stored on the Win2k Domain Controllers?
The netlogon share? Can .bat files still be used ?

Thanks.

"Yes" to both questions.
 
Also, by default, if you're using GPO-based logon scripts, when you browse
the files location in the logon script dialog of a GPO, it will default to
sticking the scripts in SYSVOL within the GPT portion of the GPO (e.g.
\\domain\sysvol\domain\policies\<guid of GPO>\user\scripts\logon), which is
perfectly acceptable. If you put it there, you don't need to refer to the
full path of the script in the GPO, as you would otherwise.

Darren

--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Whitepapers and Utilities for all things Group Policy-related
And, the Windows Group Policy Guide is out from Microsoft Press!!! Check it
out at http://www.microsoft.com/mspress/books/8763.asp
GPOGUY Blog: http://blogs.dirteam.com/blogs/gpoguy
 
Hi,
sticking the scripts in SYSVOL within the GPT portion of the GPO (e.g.
\\domain\sysvol\domain\policies\<guid of GPO>\user\scripts\logon), which is
perfectly acceptable. If you put it there, you don't need to refer to the
full path of the script in the GPO, as you would otherwise.

As a guy who works in an OU, I find the above quite a mouthful and also
subject to replication issues. I put my login scripts on a file server
instead where I can get easy access to it. It also means it backed up
with my other stuff and I also have a system for the test script vs the
real script; they're both in the same folder and I can use a BAT file to
instantly overwrite the real script with the test script after it's been
tested. I would not want to be messing around in

\\domain\sysvol\domain\policies\<guid of test GPO>\user\scripts\logon

\\domain\sysvol\domain\policies\<guid of real GPO>\user\scripts\logon
 
Hi Richard,

Nice FAQ, but Q3 does not cover which script will run first if you
define both??
 
Why not just test it? Create an OU and a user, assign a 2 scripts that
writes to files. Assign one via GPO and the other in the profile. Look at
the timestamp on the files and see which one was created first.

....kurt
 
Back
Top