TheGrandHooHa
Technical User
I am working on a new system of printer scripts to help simplify our Active Directory/Group Policy setup. I had an idea of assigning printers based on OU, but rather than making a printer script for each OU, I was hoping to make a script that ascertained a given computer's OU and then assigned the appropriate printer. However, for the life of me, I can't find a way to just get the name of a computer's OU through a script. I can see how to access OU information, but only after specifying the particular OU that I wish to work with.
Is there any way this can be done?
Thanks in advance.
Is there any way this can be done?
Thanks in advance.