Functions/Open-HBSSStatusMonitor.ps1
|
function Open-HBSSStatusMonitor { <# .Notes AUTHOR: Skyler Hart CREATED: Sometime before 8/7/2017 LASTEDIT: 08/18/2017 21:11:12 KEYWORDS: REQUIRES: #Requires -Version 3.0 #Requires -Modules ActiveDirectory #Requires -PSSnapin Microsoft.Exchange.Management.PowerShell.Admin #Requires -RunAsAdministrator .LINK https://wanderingstag.github.io #> [CmdletBinding()] [Alias('HBSS')] param() if (Test-Path "$env:ProgramFiles\McAfee\Agent\cmdagent.exe") { Start-Process "$env:ProgramFiles\McAfee\Agent\cmdagent.exe" /s } elseif (Test-Path "$env:ProgramFiles\McAfee\Common Framework\CmdAgent.exe") { Start-Process "$env:ProgramFiles\McAfee\Common Framework\CmdAgent.exe" /s } elseif (Test-Path "${env:ProgramFiles(x86)}\McAfee\Common Framework\CmdAgent.exe") { Start-Process "${env:ProgramFiles(x86)}\McAfee\Common Framework\CmdAgent.exe" /s } else { Throw "HBSS Client Agent not found" } } |