Rename-Computer : Missing An Argument For Parameter 'LocalCredential'

IT Support Forum Forums Active Directory Users And Computers Rename-Computer : Missing An Argument For Parameter 'LocalCredential'

This topic contains 0 replies, has 1 voice, and was last updated by  Webmaster 1 year, 4 months ago.

  • Author
    Posts
  • #1269

    Webmaster
    Keymaster

    When trying to rename a computer via the Rename-Computer PowerShell commandlet, you get this error:

    Rename-Computer : Missing an argument for parameter ‘LocalCredential’

    I haven’t managed to fix this, but from what I can tell it seems to be an Access Denied type message. The reason for this is that every other type of remote action I tried to do on the computer I was trying to rename, returned an Access Denied message. Therefore I think that the PowerShell command is trying to run on the computer, finding that it doesn’t have access and is then asking for credentials (the ‘LocalCredential’ parameter) to be specified in the Rename-Computer commandlet.

    I ended up rebuilding the computer because it was the only one that wasn’t working out of many on the same VLAN.

    I imagine that the Rename-Computer : Missing an argument for parameter ‘LocalCredential’ error could also occur if you didn’t run PowerShell as an Administrator or if the user that PowerShell was run as didn’t have administrator permission on the computer you are trying to rename.

You must be logged in to reply to this topic.