Files
Iwan Clement 1808f43f53 first commit
2020-11-03 18:55:20 +01:00

49 lines
781 B
PowerShell
Executable File

Configuration StopMaps
{
Import-DscResource -ModuleName PSDesiredStateConfiguration
Node localhost
{
Service DisableMaps
{
Name = "MapsBroker"
StartupType = "Disabled"
State = "Stopped"
}
}
}
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"
}
}
}