We help IT Professionals succeed at work.

Vmware: domain joined w10 vm, PS based

Hi,

How do 7 create a VMware template for a domain joined w10 vm?
I d like to create it via Powershell
A blog would be Nice.

Thanks
Comment
Watch Question

David Johnson, CDSimple Geek from the '70s
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
A template cannot be domain joined. A template VM must be a sysprepped OS.. 
Commented:
New-OSCustomizationSpec -Name 'WindowsServer2012' -FullName 'TestName' -OrgName 'TestOrg' -OSType Windows -ChangeSid -AdminPassword (Read-Host -AsSecureString) -Domain 'DOMAIN' -TimeZone 035 -DomainCredentials (Get-Credential) -ProductKey '1111-1111-1111-1111' -AutoLogonCount 1