Logon script location??

M

MLK

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

Thanks.
 
R

Richard G. Harper

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
 
P

Pegasus \(MVP\)

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.
 
D

Darren Mar-Elia \(MVP\)

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
 
G

Gerry Hickman

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
 
G

Gerry Hickman

Hi Richard,

Nice FAQ, but Q3 does not cover which script will run first if you
define both??
 
K

Kurt

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top