Benutzer:MovGP0/Powershell/DSC/Credentials
aus Wikipedia, der freien Enzyklopädie
< Benutzer:MovGP0 | Powershell | DSC
MovGP0 | Über mich | Hilfen | Artikel | Weblinks | Literatur | Zitate | Notizen | Programmierung | MSCert | Physik |
CredentialsCredentials with Certificates
$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
}
}
}
Unencrypted Credentials for Test Environment
$ConfigData = @{
AllNodes = @{
NodeName = "*"
PsDscAllowPlainTextPassword = $true
}
}
Configuration MyConfiguration {
Node $Computername {
User LocalAdmin {
UserName = "LocalAdmin"
Description = "Local administrator account"
Disabled = $false
Ensure = "Present"
Password = $Password
}
}
}
|