我正在尝试使用Windows Server 2016实现自动化。
现在我无法通过PowerShell Direct访问sysprep
ed VM,因为您必须为管理员帐户设置密码。我该如何访问此服务器?
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
答案 0 :(得分:0)
我必须使用Windows SIM(系统映像管理器)创建一个答案文件,它是Windows 10 ADK的一部分。 我必须将答案文件放在Windows 10中,然后将unattend.xml文件放在路径C:\ Windows \ Panther
中。