I changed the rename portion of the script to suit my needs and ran into an issue where the script would spin indefinitely on 'Installing' .. turns out some of my computer names exceeded the 15 char netbios limit and was throwing up a confirmation box.
To address this, add -Force to the end of the Rename-Computer command:
I changed the rename portion of the script to suit my needs and ran into an issue where the script would spin indefinitely on 'Installing' .. turns out some of my computer names exceeded the 15 char netbios limit and was throwing up a confirmation box.
To address this, add -Force to the end of the Rename-Computer command:
Rename-Computer -NewName $newName -Force