first commit
This commit is contained in:
36
Exercise Files/01_02/01_02_begin.ps1
Executable file
36
Exercise Files/01_02/01_02_begin.ps1
Executable file
@@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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