Jump to content

Recommended Posts

Posted

Well until Pulse-way get around to integrating Bitdefender I needed some way to quickly see who was installed and who was not, this scrip adds an entry to the computer name as "NoBit" or "BitActive" depending weather or not the bitdefender service is found or not. then just visit Systems, Key in the name filed NoBit and hit search to see which clients are missing Bitdefender. Note, does not check if service is running or actually active, only that the service exist.

 

 

Suggestions Welcome.

 

 

#Written by eDecisions
#Use to determine if Bitdefender is loaded

$computername = (New-Object -ComObject WScript.Shell).RegRead("HKLM\SOFTWARE\MMSOFT Design\PC Monitor\ComputerName")

$currentnameA = $computername -replace "BitActive" -replace ""
$currentname = $currentnameA -replace "NOBit" -replace ""

$serviceName = "EPSecurityService"
If (Get-Service $serviceName -ErrorAction SilentlyContinue) {
Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\" -Name ComputerName -Value "$currentname" , "BitActive"
} Else { Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\" -Name ComputerName -Value "$currentname" , "NOBit"
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...