Files
PowerShell-PSDscResources/Examples/Sample_Service_DeleteService.ps1
2016-12-15 14:03:39 -08:00

22 lines
371 B
PowerShell

<#
.SYNOPSIS
Stops and then removes the service with the name Service1.
#>
Configuration Sample_Service_DeleteService
{
[CmdletBinding()]
param
()
Import-DscResource -ModuleName 'PSDscResources'
Node localhost
{
Service ServiceResource1
{
Name = 'Service1'
Ensure = 'Absent'
}
}
}