Skip to Main Content
Status Future consideration
Categories User Experience
Created by Gary Blok
Created on Mar 15, 2020

Ability to Right Click and Rename a Machine

At times I need to rename a computer, I'd like to do it from the console. Trigger the rename (PC001 -> Client001 for example) then have it trigger a DDR so the console updates quickly. Right now I have to remote to the computer, and either do it command line style or via dialog boxes. Sure, I can do it with OSD.. but that's overkill.

Product Right Click Tools
  • Attach files
  • Roy Padrick
    Sep 25, 2025

    FYI - We use a Script in MECM to do this (if that's what you're using). It prompts for username, password, and then what new comp name you want.




    Param(
    [Parameter(Mandatory=$true)]
    [string]$Username,

    [Parameter(Mandatory=$true)]
    [string]$Password,

    [Parameter(Mandatory=$true)]
    [string]$NewName

    )

    $credential = New-Object System.Management.Automation.PSCredential($username, (ConvertTo-SecureString "$password" -AsPlainText -Force))
    Rename-Computer -NewName "$NewName" -DomainCredential $credential -Force -PassThru
    Restart-Computer -Force

  • Claudio Mendes
    Apr 22, 2021

    +1

  • Brian Grinstead
    Nov 2, 2020

    this would still be helpful as it would take more steps to use another method even with the login credential input

  • Chris Muster
    Jun 8, 2020

    It looks like we can only do this if we prompt for username and password because of the Kerberos double hop problem. Is this still desired if we prompt for username and password in the tool?

  • +47