Reply To: set default printer – script

#12711
mikev
Member
  • Total Post: 157
  • Jacked into The Matrix
  • ★★★★★★

in my script i am just running the command as below to set default printer –

cscript prnmngr.vbs -t -p “printername”

Also, i tried to run the batch file (instead of exe) from within the package and also included “pause” command to halt and see the results. It does everything properly and in the end it also says “the default printer has been set to ….” – but does not actually does it.

If i run the same batch file or exe manually directly from the terminal (not thru package) – i get the same “the default printer has been set to ….” – but this time it does change the default printer.

really wierd.