first commit
This commit is contained in:
34
Exercise Files/01_05/01_05.ps1
Executable file
34
Exercise Files/01_05/01_05.ps1
Executable file
@@ -0,0 +1,34 @@
|
||||
New-Guid
|
||||
|
||||
|
||||
Configuration ConfiguredServer
|
||||
{
|
||||
Param([string[]]$ComputerName = "srv02")
|
||||
Import-DscResource -ModuleName PSDesiredStateConfiguration
|
||||
Node $ComputerName
|
||||
{
|
||||
Service NoMapsDownload
|
||||
{
|
||||
Name = "MapsBroker"
|
||||
StartupType = "Disabled"
|
||||
State = "Stopped"
|
||||
}
|
||||
Service HaveBITS
|
||||
{
|
||||
Name = "BITS"
|
||||
StartupType = "Automatic"
|
||||
State = "Running"
|
||||
}
|
||||
WindowsFeature NoWebServer
|
||||
{
|
||||
Ensure = "Absent"
|
||||
Name = "Web-Server"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
ConfiguredServer
|
||||
|
||||
New-DscChecksum -Path .\ConfiguredServer\ #Place .mof filename here
|
||||
Reference in New Issue
Block a user