mtniehaus / RenameComputer

Rename a Hybrid AADJ computer after an Autopilot deployment
MIT License
56 stars 18 forks source link

Script might hang due to Netbios / 15 char #5

Closed rrseeley closed 7 months ago

rrseeley commented 1 year ago

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

mtniehaus commented 7 months ago

I added that in the new version, so it's there by default :-)