Rename a domain computer via PowerShell using below commands:
Frst Change the domain credentials here with your domain
$cred = Get-Credential intercol\administrator
Rename-Computer -ComputerName "OLDNAME" -NewName "NEW-NAME" -LocalCredential intercol\administrator -DomainCredential $cred -Force -PassThru -Restart
No comments:
Post a Comment