Hi guys,
I'm pretty new to SCVMM (as an admin) and I've been stuck with this issue fro a few days.
I'm trying to create a domain controller service template.
The issue I'm having is with the exact same script if I run it in a regular VM, everything works. If it's run by the service template provisioning engine as an application to profile script no error message but the dns zone corresponding to the domain freshly created is not created for some reason.
Any idea why I have this difference?
Thanks for your help!
param ( [string]$domainName, [string]$netbiosName, [string]$safeModePass ) # Add the RSAT tools Add-WindowsFeature RSAT-AD-Tools # Add the features Add-WindowsFeature AD-Domain-Services -IncludeAllSubFeature -IncludeManagementTools Add-WindowsFeature DNS -IncludeAllSubFeature -IncludeManagementTools Add-WindowsFeature GPMC -IncludeAllSubFeature -IncludeManagementTools # convert the password to a secure string as required $secPass = ConvertTo-SecureString -String $safeModePass -AsPlainText -Force # Create the Forest and Domain Install-ADDSForest -CreateDnsDelegation:$false -DomainMode Win2012 -DomainName $domainName -DomainNetbiosName $netbiosName -ForestMode Win2012 -InstallDns:$true -Force -SafeModeAdministratorPassword $secPass Start-Sleep -s 10
Cya