mirror of
https://github.com/PowerShell/PSDscResources
synced 2026-06-21 13:45:29 +00:00
21 lines
562 B
PowerShell
21 lines
562 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Stops the processes with the executables at the file paths C:\Windows\cmd.exe and
|
|
C:\TestPath\TestProcess.exe with no arguments and logs any output to the path
|
|
C:\OutputPath\Output.log.
|
|
#>
|
|
Configuration Sample_ProcessSet_Stop
|
|
{
|
|
[CmdletBinding()]
|
|
param ()
|
|
|
|
Import-DscResource -ModuleName 'PSDscResources'
|
|
|
|
ProcessSet ProcessSet1
|
|
{
|
|
Path = @( 'C:\Windows\System32\cmd.exe', 'C:\TestPath\TestProcess.exe' )
|
|
Ensure = 'Absent'
|
|
StandardOutputPath = 'C:\OutputPath\Output.log'
|
|
}
|
|
}
|