New Question

mav96's profile - activity

2017-06-28 14:28:57 +0300 commented answer Windows 10 Hostname not being set

or if you want to add to domain: $name = ((New-Object System.Net.WebClient).DownloadString("http://169.254.169.254/latest/meta-data/hostname")) Add-Computer -ComputerName $env:ComputerName -DomainName "yourdomain" -Credential $crd -OUPath "OU=servers...." -NewName $name

2017-06-28 14:28:40 +0300 commented answer Windows 10 Hostname not being set

So i used next workaround - add in Customization Script when launch instance: $computerName = Get-WmiObject Win32_ComputerSystem $name = (New-Object System.Net.WebClient).DownloadString("http://169.254.169.254/latest/meta-data/hostname") $computername.Rename($name)

2017-06-28 14:27:09 +0300 commented answer Windows 10 Hostname not being set

Hi I have changed in Unattend.xml but after sysprep instance didn't start.