add default value for Force param in End-Process function
This commit is contained in:
@@ -383,7 +383,7 @@ Function End-Process
|
||||
param(
|
||||
[Parameter(Mandatory=$true,ValueFromPipeline=$true)][string[]]$Name,
|
||||
[Parameter(Mandatory=$false)][switch]$Match=$false,
|
||||
[Parameter(Mandatory=$false)][switch]$Force
|
||||
[Parameter(Mandatory=$false)][switch]$Force=$false
|
||||
)
|
||||
ForEach ( $item in $Name ) {
|
||||
$process = Get-Process -Name $item -ErrorAction SilentlyContinue
|
||||
|
||||
Reference in New Issue
Block a user