Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Logon Script Samples

HTVi
TV Discussion Newsgroups

Logon Script Samples
"Don" <someone[ at ]somewhere.net> 5/17/2007 11:38:09 PM
I have found myself responsible for administering a small lab network with a
server running Windows 2000 server. Does anyone know of any good online
logon script samples for doing things like automatically mapping network
drives, etc? It is pretty much a stock machine without any scripting tools
(e.g. kix32 (?)) added.

Any ideas will be greatly appreciated!

Thanks in advance!

Don


Re: Logon Script Samples
"Pegasus" <I.can[ at ]fly.com> 5/17/2007 11:45:56 PM

"Don" <someone[ at ]somewhere.net> wrote in message
news:uYuODwNmHHA.2596[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text]
>I have found myself responsible for administering a small lab network with
>a
> server running Windows 2000 server. Does anyone know of any good online
> logon script samples for doing things like automatically mapping network
> drives, etc? It is pretty much a stock machine without any scripting
> tools
> (e.g. kix32 (?)) added.
>
> Any ideas will be greatly appreciated!
>
> Thanks in advance!
>
> Don
>
>

Here is a typical example:

net use P: \\YourServer\UserShares\%UserName%


Re: Logon Script Samples
"Richard Mueller [MVP]" <rlmueller-nospam[ at ]ameritech.nospam.net> 5/18/2007 1:59:18 AM
Don wrote:

[Quoted Text]
>I have found myself responsible for administering a small lab network with
>a
> server running Windows 2000 server. Does anyone know of any good online
> logon script samples for doing things like automatically mapping network
> drives, etc? It is pretty much a stock machine without any scripting
> tools
> (e.g. kix32 (?)) added.
>
> Any ideas will be greatly appreciated!

All clients with Windows 2000 above support VBScript logon scripts. A simple
example VBScript logon script:
===========
Option Explicit
Dim objNetwork

Set objNetwork = CreateObject("Wscript.Network")

' Map network drive.
objNetwork.MapNetworkDrive "K:", "\\MyServer\MyShare"

' Map printer.
objNetwork.AddWindowsPrinterConnection "\\PrintServer\HPLaser2"

' Make this the default printer.
objNetwork.SetDefaultPrinter "\\PrintServer\HPLaser2"
===========
I have an FAQ on setting up logon scripts and your options linked here:

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

If you need to map drives or printers according to group membership, it can
get more complicated. I have sample VBScript logon scripts that do this
linked here:

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

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--


Re: Logon Script Samples
Jeffery Hicks <jhicks[ at ]sapien.com> 5/18/2007 5:52:14 PM
Don wrote:
[Quoted Text]
> I have found myself responsible for administering a small lab network with a
> server running Windows 2000 server. Does anyone know of any good online
> logon script samples for doing things like automatically mapping network
> drives, etc? It is pretty much a stock machine without any scripting tools
> (e.g. kix32 (?)) added.
>
> Any ideas will be greatly appreciated!
>
> Thanks in advance!
>
> Don
>
>
I developed a logon script generator. It is an HTA with drop downs and
options to automagically create a VBSCript logon script. The tool is a
free download at http://www.primalscript.com/freetools/defaultin.asp.

I wrote about it in last month's Mr. Roboto column.
http://redmondmag.com/columns/article.asp?EditorialsID=1690
Re: Logon Script Samples -> Thanks Everyone!!!
"Don" <someone[ at ]somewhere.net> 5/19/2007 12:47:19 AM
Thanks for all your help!

Don




"Don" <someone[ at ]somewhere.net> wrote in message
news:uYuODwNmHHA.2596[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text]
> I have found myself responsible for administering a small lab network with
a
> server running Windows 2000 server. Does anyone know of any good online
> logon script samples for doing things like automatically mapping network
> drives, etc? It is pretty much a stock machine without any scripting
tools
> (e.g. kix32 (?)) added.
>
> Any ideas will be greatly appreciated!
>
> Thanks in advance!
>
> Don
>
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen