Link to home
Start Free TrialLog in
Avatar of itamt
itamt

asked on

Script to change printer location and description on Windows 2003 server

Hello,

I need a script to change printer location and description on windows 2003 server.  

Set objOU = GetObject("LDAP://OU = Finance, DC = fabrikam, DC = com")
objOU.Filter = Array("printqueue")

For Each objPrintQueue In objOU
    objPrintQueue.Put "Location" , "USA/Redmond/Finance Building"
    objPrintQueue.SetInfo
Next


This script does not work for us since it is for Active Directory, we need it for local server.


Thank you
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of itamt
itamt

ASKER

That worked, great thanks!
You're welcome.