How Do I Use Scripts to Create Printers According To Group Names

  • Thread starter Christopher Beard
  • Start date
C

Christopher Beard

I need to establish one login script (using VB Script or
Java Script) that will create the user's needed printers
based on membership in a group. If a user is in A group
he gets printer A. In B group, printer B, etc. Can any
tell me how to code this login script to query AD, find
the groups the user is in and create the printers
accordingly? Thanks!
 
T

Torgeir Bakken \(MVP\)

Christopher said:
I need to establish one login script (using VB Script or
Java Script) that will create the user's needed printers
based on membership in a group. If a user is in A group
he gets printer A. In B group, printer B, etc. Can any
tell me how to code this login script to query AD, find
the groups the user is in and create the printers
accordingly? Thanks!
Hi


For some VBScript examples, take a look under "Group Membership Tests" and
"Logon Scripts" under "Free VBScript Code" at
http://www.rlmueller.net/

You will also find logon script examples with group testing etc. at
http://cwashington.netreach.net as well.

E.g. here:
http://cwashington.netreach.net/dep...tory&ScriptType=vbscript&SubType=LogonScripts
 
G

Guest

Thank you very much!
Christopher
-----Original Message-----

Hi


For some VBScript examples, take a look under "Group Membership Tests" and
"Logon Scripts" under "Free VBScript Code" at
http://www.rlmueller.net/

You will also find logon script examples with group testing etc. at
http://cwashington.netreach.net as well.

E.g. here:
http://cwashington.netreach.net/depo/default.asp? topic=repository&ScriptType=vbscript&SubType=LogonScripts



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.msp x
.
 

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