I'm trying to automate things with Windows Server 2016.
Now I can't acces a syspreped VM via PowerShell Direct because you have to set password for the Administrator account. How can I access this server?
PS> icm -VMName S2D1 { ipconfig }
cmdlet Invoke-Command at command pipeline position 1
Supply values for the following parameters:
The credential is invalid.
+ CategoryInfo : OpenError: (S2D1:String) [], PSDirectException
+ FullyQualifiedErrorId : PSSessionStateBroken
I have to create an answer file using the Windows SIM (System Image Manager) which is part of the Windows 10 ADK
I have to place the answer file inside of the VHDX by mounting it in Windows 10 and then placing the unattend.xml file in the path C:\Windows\Panther
source : http://www.altaro.com