Jump to content

Recommended Posts

Posted (edited)

Here you go, the code is well commented so you should hopefully be able to follow what's going on if you want a look. I'd recommend using Notepad++ as it colours all the keywords and make it easier to read.

 

*** Updated ***

Now supports PC Group, OU or PC Name matching

 

It's set for applying printers based on the group membership of the PC, if you want to change this to OU membership or matches on the name of the PCs then you can change a single line of the script as explained in the comments.

 

Hmmm, actually I could tweak the code so that the section names in the .ini file could contain an identifier which determines whether the match should be made on a group, OU or PC Name. This would eliminate the need for any code editing and make the printer assignment very flexible. Do you think that would be a useful feature?

 

The readme should hopefully give you enough info on the installation and use.

 

Let me know if you need any help.

 

Cheers,

 

Chad

Map Printers.rar

Edited by Chad
Overhauled code to add matching on OUs and PC names as well as groups

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...