mirror of
https://github.com/PowerShell/PSDscResources
synced 2026-06-21 13:45:29 +00:00
27 lines
524 B
PowerShell
27 lines
524 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Stops the gpresult process if it is running.
|
|
Since the Arguments parameter isn't needed to stop the process,
|
|
an empty string is passed in.
|
|
#>
|
|
Configuration Sample_WindowsProcess_Stop
|
|
{
|
|
param
|
|
()
|
|
|
|
Import-DSCResource -ModuleName 'PSDscResources'
|
|
|
|
Node localhost
|
|
{
|
|
WindowsProcess GPresult
|
|
{
|
|
Path = 'C:\Windows\System32\gpresult.exe'
|
|
Arguments = ''
|
|
Ensure = 'Absent'
|
|
}
|
|
}
|
|
}
|
|
|
|
Sample_WindowsProcess_Stop
|
|
|