2023-03-07 12:28:00 -08:00
|
|
|
function Get-WinUtilInstallerProcess {
|
|
|
|
|
<#
|
2023-10-04 10:08:10 -05:00
|
|
|
|
2023-03-07 12:28:00 -08:00
|
|
|
.DESCRIPTION
|
|
|
|
|
Meant to check for running processes and will return a boolean response
|
2023-10-04 10:08:10 -05:00
|
|
|
|
2023-03-07 12:28:00 -08:00
|
|
|
#>
|
|
|
|
|
|
|
|
|
|
param($Process)
|
|
|
|
|
|
|
|
|
|
if ($Null -eq $Process){
|
|
|
|
|
return $false
|
|
|
|
|
}
|
|
|
|
|
if (Get-Process -Id $Process.Id -ErrorAction SilentlyContinue){
|
|
|
|
|
return $true
|
|
|
|
|
}
|
|
|
|
|
return $false
|
|
|
|
|
}
|