I am creating a batch file that will add Network Printers based on your location. The script works fine in PS when I have my admin rights, but I am not sure how to add admin rights when adding a printer. I have the following code, and it is repeated several times in the file with different printer information to add all printers for that area.
Add-PrinterDriver -Name "HP LaserJet 600 M601 M602 M603 PCL6"
Add-PrinterPort -Name "IP" -PrinterHostAddress "IP"
Add-Printer -Name "10139 Printer - Production" -DriverName "HP LaserJet 600 M601 M602 M603 PCL6" -Shared -ShareName "ProdPrinter" -PortName "IP"
I want to be able to run the batch file on any pc and just work, nothing else. no display.