Forum Discussion
PurpleTentacle
Oct 14, 2022Copper Contributor
After applying KB5018421 computers cannot be renamed
After applying KB5018421 renaming the computer is no longer possible because the name can't be changed in AAD. Uninstalling the KB allows renaming of the computer.
PS C:\windows\system32> Rename-Computer -NewName F57-0 -Restart
Rename-Computer : Fail to rename computer 'TEND45D648129B2' to 'F57-0' due to the following exception: Unable to
update hostname in Azure AD. Check the event log for detailed error information.
At line:1 char:1
+ Rename-Computer -NewName F57-0 -Restart
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (TEND45D648129B2:String) [Rename-Computer], InvalidOperationException
+ FullyQualifiedErrorId : FailToRenameComputer,Microsoft.PowerShell.Commands.RenameComputerCommand
- PurpleTentacleCopper Contributor
The issue appears to be somewhere between our Internet filtering solution and the October KB5018421.
Removing the update fixes the issue, as does leaving the update in place and removing the filtering software.