mirror of
https://github.com/PowerShell/PSDscResources
synced 2026-06-21 13:45:29 +00:00
22 lines
371 B
PowerShell
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'
|
|
}
|
|
}
|
|
}
|