Created
January 28, 2018 23:17
-
-
Save gaelcolas/6cba6fbdac9baa7cf5773ab6b9475e44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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