I am trying to map a default printer based on the location found in AD Sites and Services. I can grab the location of the computer using [System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetComputerSite().Name
Once I have grabbed the location, I would like it to map 2 printers based on the location. Each of our 10 sites has 2 default printers that I would like "Domain Users" to have. Then any security group related ones are mapped via another script I already have.
I already have a script in place using VB to do this - but as I am currently learning PS, I would like some pointers on this.
Thanks in advance