37 lines
490 B
PowerShell
Executable File
37 lines
490 B
PowerShell
Executable File
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configuration InstalledRoles
|
|
{
|
|
Param([string[]]$ComputerName = "srv01")
|
|
Import-DscResource -ModuleName PSDesiredStateConfiguration
|
|
Node $ComputerName
|
|
{
|
|
WindowsFeature HaveBitLocker
|
|
{
|
|
Ensure = "Present"
|
|
Name = "BitLocker"
|
|
}
|
|
WindowsFeature NoWebServer
|
|
{
|
|
Ensure = "Absent"
|
|
Name = "Web-Server"
|
|
}
|
|
}
|
|
}
|
|
|