mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-16 23:55:50 -06:00
18 lines
357 B
PowerShell
18 lines
357 B
PowerShell
|
function Get-WinUtilInstallerProcess {
|
||
|
<#
|
||
|
|
||
|
.DESCRIPTION
|
||
|
Meant to check for running processes and will return a boolean response
|
||
|
|
||
|
#>
|
||
|
|
||
|
param($Process)
|
||
|
|
||
|
if ($Null -eq $Process){
|
||
|
return $false
|
||
|
}
|
||
|
if (Get-Process -Id $Process.Id -ErrorAction SilentlyContinue){
|
||
|
return $true
|
||
|
}
|
||
|
return $false
|
||
|
}
|