Files
PowerShell-PSDscResources/Examples/Sample_ServiceSet_StartServices.ps1
T
2019-04-28 18:51:33 +01:00

16 lines
326 B
PowerShell

<#
.SYNOPSIS
Ensures that the DHCP Client and Windows Firewall services are running.
#>
Configuration ServiceSetStartExample
{
Import-DscResource -ModuleName 'PSDscResources'
ServiceSet ServiceSet1
{
Name = @( 'Dhcp', 'MpsSvc' )
Ensure = 'Present'
State = 'Running'
}
}