Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PS script to change printers and check for default

$
0
0

 We have a large project of renaming printers due to some linux devises that do not agree with our naming convention. I am new to ps so looking for some direction.

Our current printers are say 'print$1' and we are changing to 'print1' basically just removing the dollar sign.

We have batch files for the helpdesk for new imaged machines so they will get the new names, no problem but for the people that have been here, how can I create a script that will do the following:

1. allow me to put old printer > replace with new printer

2. detect if old printer is default and make new printer default.

3. only affect the printers that are currently installed on the pc

note we have multiple locations and alot of print servers. 

thank you for your help


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>