locked
Rename Printer Script RRS feed

  • Question

  • How would I create a script to run the following command on a remote computer:

    Rename-Printer -Name '(printer name)' -NewName '(New Printer Name)'

    Thank you!

    I think I figured why it won't rename from my previous post.
    The names are different in both the remote computer and the computer I'm working with. 

    Can someone help with this script?

    Thursday, May 11, 2017 8:38 PM

All replies

  • You really can't without enabling remoting.

    You can try the WMI link I posted above.  That will work if you are an admin and if the remote is correctly configured.


    \_(ツ)_/

    • Proposed as answer by Hello_2018 Monday, June 5, 2017 8:10 AM
    Thursday, May 11, 2017 8:58 PM
  • In case your local computer & remote computer are joined to the same domain. You can login as domain admin & run the following command.

    Invoke-Command -ComputerName <RemoteComputerName> -ScriptBlock { Rename-Printer -Name '(printer name)' -NewName '(New Printer Name)' }

    Make sure port 5985 is listening on remote computer.


    Sunday, May 28, 2017 6:38 PM