PSScripts/Monitor-ExProLicenceKey.ps1
2023-12-18 18:01:36 +00:00

7 lines
274 B
PowerShell

# Monitors whether Examine Pro Licence USB Key is preasent
$driver = Get-WindowsDriver -Online -all | Where-Object {$_.ProviderName -eq "SafeNet, Inc."}
if ($driver -eq $null){Write-Host "Licence Key is Missing"; exit 1}
else {Write-Host "Licence Key is Present"; exit 0}