Home > Archive > 70-210 > February 2001 > Logon Scripts





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Logon Scripts

2001-02-07, 8:35 am

Simple question. What are they? Why would one use them?

My 70-210 books assume I already know.

trebor

2001-02-07, 9:51 am

Ok if you have lets say 2000 users and they all use the same shared areas on several servers and you would like to map drive letters to them, you could either manually add them to each client machine (rather dumb option and time consuming) or you could use logon scripts.

Basically a logon script is a batch file or .cmd file that contains a list of commands which enable you to automate various processes.

In this case where you have 2000 users using the same shares on several servers you would use them to map drives automatically based on their groupings within the NT Group policies (this is the same as in NT4 assuming you have covered the NT4 track if not I suggest you read up on the Group Policies & Users sections in most windows 2000 books) them to map common drive shares so that they all receive the same.

I hope this clarifies your confusion and sheds some light on what they are as well.

Yeti the Helpful
------------------
MCNE, MCPx5, SCO ACE, LCP, Compaq ASE, CCIE Wannabe (part of the Wannabe Boffin Club).
http://www.yetigbr1.plus.com or http://www.mcse2000.plus.com or http://www.mcse-2000.org & http://www.mcse-2k.co.uk

MCSE2000 Forum http://pub34.ezboard.com/bmcse200067298

Mailto: yeti@zerg.com

2001-02-07, 11:36 am

Yeti the truly helpful, yes that (as you say) clarifies my confusion.

It is really simple when you put it like that.

What might a logon script look like that could map a drive at logon?

trebor

2001-02-07, 12:11 pm

Here this should help you:
http://www.microsoft.com/TechNet/wi...ep/logscrpt.asp or http://www.microsoft.com/TechNet/winnt/grlogon.asp

Yeti the MS Resource
----------------------
MCNE, MCPx5, SCO ACE, LCP, Compaq ASE, CCIE Wannabe (part of the Wannabe Boffin Club).
http://www.yetigbr1.plus.com or http://www.mcse2000.plus.com or http://www.mcse-2000.org & http://www.mcse-2k.co.uk

MCSE2000 Forum http://pub34.ezboard.com/bmcse200067298

Mailto: yeti@zerg.com

[This message has been edited by Yeti-GBR1 (edited 02-07-2001).]

2001-02-07, 12:18 pm

Here's some example text for a .bat file used as a script to map drives that I like to use.
net use f: servername\share1
net use g: servername\share2
net use m: servername\share3
Be sure to save this as a .bat file. I use notepad and/or the "edit" command on the cmd line.

Now the fun stuff!

To use in a Win2k Domain W/ Active Directory, you first place this script in the \\servername\sysvol\domain\scr
ipts share on the network. Then you go to AD and "point" the users to this script(s). This is the totally cool way if you have a very large network.

Locally, you have two ways to utilize scripts. This has more administrative overhead if you have a lot of stations throughout the office. Anyway, once the scripts are created, you can assign them by running MMC. Add the Local Computer Policy snap-in to the console. Once there, go to the windows settings folder under computer config. Expand it, and you will see in the right plane "Scripts (startup/shutdown)". In the right plane, doubleclick "scripts". Now you should see "startup" and "shutdown". You can add your scripts to starup and/or shutdown by simply double clicking the appropriate icon. If you know the path to the scripts (surely you do!), you can click the add button to give the script name and parameters. You can also browse the startup by clicking the show files button.

To manually add the scripts to the directory using Winnt Explorer, go to %systemroot%/System32/GroupPolicy/Machine/Scripts
Here you can place the custom scripts in either the shutdown or startup directories.

You don't have to just use .bat files for scripts, you can use Jscript and/or VBscript too! I love scripting, and learn more about it every day. You can cut down on some of the administrative tasks by utilizing them.

I sure hope this helps and that I didn't run around too much!

------------------
Joe W. Guy
A+ Certified Tech.
Tuscaloosa, Alabama
----------------------
"A mind is a terrible thing to waste...."

[This message has been edited by jguy (edited 02-07-2001).]

2001-02-07, 12:32 pm

Jguy,

servernamesysvoldomainscripts???? only joking...damnd good explination there mate, way way better than mine

Yeti the Non-Win2K Proficient

[This message has been edited by Yeti-GBR1 (edited 02-07-2001).]

2001-02-07, 12:36 pm

I found these as well:

1. http://windows.microsoft.com/window...concepts_07.htm

2. http://windows.microsoft.com/window...g_devicelog.htm

3. <A HREF="http://windows.microsoft.com/windows2000/en/server/help/gptext_assignlogonscripts.htm" TARGET=_blank>http://windows.microsoft.com/windows2000/en/server/help/gptext_assignlogonscripts.htm[/UR L]

4. http://windows.microsoft.com/windows2000/en/server/help/sag_lsconcepts_0.htm</A>

5. [url="http://windows.microsoft.com/windows2000/en/server/help/sag_lsconcepts_1.htm"]http://windows.microsoft.com/windows2000/en/server/help/sag_lsconcepts_1.htm


Yeti the Verbose

[This message has been edited by Yeti-GBR1 (edited 02-07-2001).]

2001-02-07, 12:48 pm

Yeti, good to have you back

------------------
Freak, MA, M.Ed., Net+,I-Net+, MCP+I, MCSE NT 4.0, MCSE 2000, MCT
ICQ: 100744839

http://www.mcsefreak.com
Industry News - Free Prep Tests - Study Guides - Exam Drill - Choices - Forum

http://www.WebMaineacs.com
Web Hosting - web design - Web Strategies - Networking - hosting from only $8 a month!

2001-02-07, 1:40 pm

That is great Jguy and Yeti. That should keep me busy for a while.

I am sure after digesting that info I will have a few other questions.

Trebor the grateful

2001-02-07, 2:45 pm

I fixed the mistakes in the above post! I must have been pretending to be on "Who want's to be a Millionaire!" You know, trying to have the "fastest fingers"!

Anyway, sometimes I tend to get too excited and my typing goes nutz! Anyway, the possibilities are endless with scripting!

Also to note: You can use PERL scripts too! WSH does a lot for MSNerdz.

Script On!

------------------
Joe W. Guy
A+ Certified Tech.
Tuscaloosa, Alabama
----------------------
"A mind is a terrible thing to waste...."

2001-02-07, 4:49 pm

Why thank you Freak, its good to be back on the boards again...now all I need is a brain...now where did I put it....


Dammit!! why cant you find one when you need it.

Yeti the Brainless

[This message has been edited by Yeti-GBR1 (edited 02-07-2001).]

2001-02-07, 5:45 pm

Yeti-GBR1, I hear that they have a special if you follow the yellow-brick road (4101 D Industry Drive Fife, WA 98424) all the way to OZ (Microsoft Corp.) I hear the Wizard(s) (Billy Boy and crew!) have a great Enterprise Special on brainware with a EULA!!! Purchase plenty of CALs for it! Hehehehehehe!

jguy the joker! &lt;-- I really like Trebor's style!

------------------
Joe W. Guy
A+ Certified Tech.
Tuscaloosa, Alabama
----------------------
"A mind is a terrible thing to waste...."

2001-02-07, 6:07 pm

To add more info to this forum, I mentioned VBScript for Win2k administration. Here's a great link to download a FREE comprehensive hands on tutorial and documentation for VBScripting. Enjoy!
http://msdn.microsoft.com/scripting/

------------------
Joe W. Guy
A+ Certified Tech.
Tuscaloosa, Alabama
----------------------
"A mind is a terrible thing to waste...."

2001-02-08, 1:29 pm

try this for any W32 scripting. It is the best place I have found
http://cwashington.netreach.net/mai....asp?topic=news

------------------
Freak, MA, M.Ed., Net+,I-Net+, MCP+I, MCSE NT 4.0, MCSE 2000, MCT
ICQ: 100744839

http://www.mcsefreak.com
Industry News - Free Prep Tests - Study Guides - Exam Drill - Choices - Forum

http://www.WebMaineacs.com
Web Hosting - web design - Web Strategies - Networking - hosting from only $8 a month!

2001-02-08, 6:36 pm

Coooooooooooooool site! I'm bookmarking this one! Thanks!

------------------
Joe W. Guy
A+ Certified Tech.
Tuscaloosa, Alabama
----------------------
"A mind is a terrible thing to waste...."
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net