Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Update Printer LocationsContent of Update Printer Locations.vbsMD5 Hash: D00EE12E11B9CFF1146ECAE4EBB0F320 |
||
' Description: Uses ADSI to update the location attribute for all printers in a specified OU.
Set objOU = GetObject("LDAP://OU=Finance, DC=fabrikam, DC=com") objOU.Filter = Array("printqueue") For Each objPrintQueue In objOU strNewLocation = "Redmond/" & objPrintQueue.Location objPrintQueue.Put "Location" , strNewLocation objPrintQueue.SetInfo Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |