Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
configuration MyConfig {
Param()
if($Node.Role -contains 'DHCPData' -and $Node.Customers -eq 'CustomerA') {
$Domain = $ConfigurationData.customerA.Domain
}
else {
$Domain = $ConfigurationData.DefaultDomain.Domain
}
File MyDomainFile {
Ensure = 'Present'
DestinationPath = "C:\Domain.txt"
Contents = "$Domain"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment