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: Network drive mapping

HTVi
TV Discussion Newsgroups

Network drive mapping
Chris Pena 5/23/2007 8:20:01 PM
I need a script that I can use for mapping network drives at the group policy
level

(via) group object>user configuration>windows settings>logon

I'm a Desktop Tech, turned Sysadmin, so bare with me....

Thanks,
Re: Network drive mapping
Jeffery Hicks <jhicks[ at ]sapien.com> 5/23/2007 9:02:40 PM
Chris Pena wrote:
[Quoted Text]
> I need a script that I can use for mapping network drives at the group policy
> level
>
> (via) group object>user configuration>windows settings>logon
>
> I'm a Desktop Tech, turned Sysadmin, so bare with me....
>
> Thanks,

download the free logon script generator I developed at
http://www.primalscript.com/Free_Tools/index.asp. The article on how to
use is it can be found at
http://redmondmag.com/columns/article.asp?EditorialsID=1690.

You can create as many scripts as you need. Put them in the correct
GPOs linked to the right containers and you're good to go.


--
Jeffery Hicks
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com
VBScript & Windows PowerShell Training -
www.ScriptingTraining.com/classes.asp
Windows PowerShell? - www.SAPIENPress.com/powershell.asp

blog: http://blog.SAPIEN.com
blog: http://jdhitsolutions.blogspot.com
Re: Network drive mapping
"Richard Mueller [MVP]" <rlmueller-nospam[ at ]ameritech.nospam.net> 5/24/2007 3:38:15 PM
Chris Pena wrote:

[Quoted Text]
>I need a script that I can use for mapping network drives at the group
>policy
> level
>
> (via) group object>user configuration>windows settings>logon
>
> I'm a Desktop Tech, turned Sysadmin, so bare with me....
>
> Thanks,

A simple VBScript logon script to map a drive and a printer could be similar
to:
===============
Option Explicit
Dim objNetwork
Set objNetwork = CreateObject("Wscript.Network")

' Map a share to a drive letter.
objNetwork.MapNetworkDrive "M:", "\\MyServer\MyShare"

' Map a printer and set as the default.
objNetwork.AddWindowsPrinterConnection "\\PrintServer\HPLaser2"
objNetwork.SetDefaultPrinter "\\PrintServer\HPLaser2"
===============
I have an FAQ explaining your options and how to configure logons scripts
linked here:

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

If you need to check group membership, I have some examples linked here:

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

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


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