Hi all,
How are people handling the naming of workstations during provisioning?
On Win 7 we used to run some PowerShell and it worked fine. On Win 10 it seems intermittent at best. The code we use is:
$servicetag = Get-WmiObject win32_bios | Select-Object -ExpandProperty SerialNumber
Rename-Computer -NewName $servicetag -Force
The machines are Dell so the service tag is built in.
We have this running as a provisioning step after imaging but before joining the domain.
If you run this script as an admin after build, it works fine.
Anyone got any better methods please?