Im not at work but we use something like this from microsoft:
http://technet.microsoft.com/en-us/library/cc758918.aspx
Const ENGINEERING_GROUP = "cn=engineering"
Const FINANCE_GROUP = "cn=finance"
Const HUMAN_RESOURCES_GROUP = "cn=human resources"
Set wshNetwork = CreateObject("WScript.Network")
wshNetwork.MapNetworkDrive "h:",
"\\FileServer\Users\" & wshNetwork.UserName
Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" &
ADSysInfo.UserName)
strGroups = LCase(Join(CurrentUser.MemberOf))
If InStr(strGroups, ENGINEERING_GROUP) Then
wshNetwork.MapNetworkDrive "g:",
"\\FileServer\Engineering\"
wshNetwork.AddWindowsPrinterConnection
"\\PrintServer\EngLaser"
wshNetwork.AddWindowsPrinterConnection
"\\PrintServer\Plotter"
wshNetWork.SetDefaultPrinter
"\\PrintServer\EngLaser"
ElseIf InStr(strGroups, FINANCE_GROUP) Then
wshNetwork.MapNetworkDrive "g:",
"\\FileServer\Finance\"
wshNetwork.AddWindowsPrinterConnection
"\\PrintServer\FinLaser"
wshNetWork.SetDefaultPrinter
"\\PrintServer\FinLaser"
ElseIf InStr(strGroups, HUMAN_RESOURCES_GROUP) Then
wshNetwork.MapNetworkDrive "g:",
"\\FileServer\Human Resources\"
wshNetwork.AddWindowsPrinterConnection
"\\PrintServer\HrLaser"
wshNetWork.SetDefaultPrinter
"\\PrintServer\HrLaser"
End If
----- Original Message ----
From: Joseph L. Casale <[EMAIL PROTECTED]>
To: NT System Admin Issues <[email protected]>
Sent: Thursday, September 11, 2008 8:43:50 PM
Subject: RE: Printer Login Script Help
Not using R2 on the dc or print server.
VBS is what my login script uses. I can do this via GPO natively (running
Win2003 AD)?
Thanks guys!
jlc
________________________________
From: Pete Howard [EMAIL PROTECTED]
Sent: Thursday, September 11, 2008 6:41 PM
To: NT System Admin Issues
Subject: Re: Printer Login Script Help
You want cmd, vbs gpo or other ?
----- Original Message ----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: NT System Admin Issues <[email protected]>
Sent: Thursday, September 11, 2008 8:32:04 PM
Subject: RE: Printer Login Script Help
Are you running R2? It has the ability to push out printers via GPOs.
Original Message:
-----------------
From: Joseph L. Casale [EMAIL PROTECTED]
Date: Thu, 11 Sep 2008 18:05:11 -0600
To: [email protected]
Subject: Printer Login Script Help
I need some help guys,
While I am deploying everything, I am thinking that the *last* thing I had
planned to fix was the way the previous guy setup printers.
I have one print server with a handful of queues I need to add to every
profile. I need to do this via group membership.
Anyone have anything canned they can spare me? Its gonna be a late one :P
Thanks!
jlc
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
--------------------------------------------------------------------
mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~