first commit
This commit is contained in:
36
Exercise Files/01_03/01_03_begin.ps1
Executable file
36
Exercise Files/01_03/01_03_begin.ps1
Executable file
@@ -0,0 +1,36 @@
|
||||
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user