Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


create printer in specific OU

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,2725
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> create printer in specific OU
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 create printer in specific OU - 4/18/2005 6:50:52 AM   
  TomG

 

Posts: 2
Score: 0
Joined: 4/18/2005
From:
Status: offline
Hello,

I have a question! I would like create the following...
If a computer moved to a specific OU then i want to create a printer.

I try the following,


      

But it doesnÒt' work,

Many thx in advance,

Tom
 
 
Post #: 1
 
 Re: create printer in specific OU - 4/18/2005 9:09:23 AM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
I don't quite understand what you wanted. Care to explain it in a bit more detail ?

(in reply to TomG)
 
 
Post #: 2
 
 Re: create printer in specific OU - 4/18/2005 10:51:48 PM   
  TomG

 

Posts: 2
Score: 0
Joined: 4/18/2005
From:
Status: offline
hello Token,

the thing is that we have an OU structure for example

test.testdomein.net (domein name)
OU1
OU2
OU3
OU3.1
computer1

when computer 1 is in OU3.1 he has printer 1
when computer 1 moves to OU2 he has printer2

test.testdomein.net (domein name)
OU1
OU2
computer1
OU3
OU3.1

with kind regards,

Tom

(in reply to TomG)
 
 
Post #: 3
 
 Re: create printer in specific OU - 4/19/2005 8:58:02 AM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
Is there a pre-defined list of printers associated with each OU ? If so, you can use either a logon script or a startup script (from GPO) that determines the ldap path for the computer. Once that is determined, you can then extract the OU info (mostly the most restricted portion of the ldap path) and compare it against the pre-defined list of OUs (and their associated printers). If one is found, then map all the printers that belong to that specific OU and delete all other printer mappings.

(in reply to TomG)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> create printer in specific OU Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts