$ConfigData = @{
AllNodes = @{
NodeName = "Server01"
CertificateFile = "C:\Certificates\server01.cer"
Thumbprint = "EBEA25C6D826D82C923EB2594CCCD6C1E46D5342"
}
}
Configuration MyConfiguration {
Node "Server01" {
User LocalAdmin {
UserName = "LocalAdmin"
Description = "Local administrator account"
Disabled = $false
Ensure = "Present"
Password = $Credential
}
LocalConfigurationManager {
CertificateID = "EBEA25C6D826D82C923EB2594CCCD6C1E46D5342"
ConfigurationMode = "ApplyAndMonitor"
ConfigurationModeFrequencyMins = 60
RefreshMode="PUSH"
RebootNodeIfNeeded = $true
}
}
}
$ConfigData = @{
AllNodes = @{
NodeName = "*"
PsDscAllowPlainTextPassword = $true
}
}
Configuration MyConfiguration {
Node $Computername {
User LocalAdmin {
UserName = "LocalAdmin"
Description = "Local administrator account"
Disabled = $false
Ensure = "Present"
Password = $Password
}
}
}