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.