locked
powershell script to get list of printer on a Windows 2008 R2 Print Server which are using "Xerox Global Print Driver PCL6" and change there driver to "Xerox Global Print Driver PS". RRS feed

  • Question

  • Hey Scipting Guy

    I need a powershell script to get list of printer on a Windows 2008 R2 Print Server which are using "Xerox Global Print Driver PCL6"  and change there driver to "Xerox Global Print Driver PS".

    Please help!

    Friday, August 24, 2012 10:13 PM

Answers

  • Try this:
    gwmi win32_printer -computer server01 -filter 'drivername="Xerox Global Print Driver PCL6"' |
        ForEach-Object{
    	$_.DriverName='Xerox Global Print Driver PS'
            $_.Put()
        }


    ¯\_(ツ)_/¯

    Friday, August 24, 2012 10:20 PM

All replies

  • Try this:
    gwmi win32_printer -computer server01 -filter 'drivername="Xerox Global Print Driver PCL6"' |
        ForEach-Object{
    	$_.DriverName='Xerox Global Print Driver PS'
            $_.Put()
        }


    ¯\_(ツ)_/¯

    Friday, August 24, 2012 10:20 PM
  • Thanks irv, you are superb. it worked perfectly as desired. Thanks a lot.
    Friday, August 24, 2012 11:07 PM
  • Thanks irv, you are superb. it worked perfectly as desired. Thanks a lot.

    Good but realize that you could have figured that out by yourself.

    Look into the many elements of "Advanced Windows Management using PowerShell and WMI".


    ¯\_(ツ)_/¯

    Saturday, August 25, 2012 12:24 AM