AD script to change PC name based on GUID in Active Directory
Posted on 2006-07-05
In Active Directory you can assign a PC a GUID when you create it's account. We are wanting to write a script that looks up the computer name based on this GUID. We want to do this in case we image a bunch of machines we can run this script to 1) connect to AD 2) lookup the GUID based on the local PC 3) look at the pc name associated with the GUID 4) change the name of the local PC 5) join the pc back to the domain.
Any thoughts would be appreciated!