你好!
请提供详细的设置你想通过Powershell来完成。
据我所知,SCVMM里的模板设置在Library里,如果你是想新建VM模板,你可以参考Powershell cmdlet "Get-Help New-Template -detailed", 并参考以下脚本:
https://gist.github.com/jstangroome/506252
但是,如果你是已经部署安装好了VM,要加域的话,你可以参考以下脚本,并确保你配置正确的DNS:
Add-Computer -ComputerName $computername -LocalCredential $computername\administrator -DomainName $domain -Credential domain\administrator -Force -Restart
这个命令可以将本地或者远程机器加域:
https://technet.microsoft.com/en-us/library/hh849798.aspx?f=255&MSPPError=-2147217396
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com