INT_PKG_BUILDER/apps/FortigateVPN/check.ps1

11 lines
578 B
PowerShell
Raw Normal View History

2025-02-14 06:54:54 +00:00
$ProgramName = "FortiClientVPN"
#$ProfileName = "DEMO scloud" # Change to your Profilename!
$ProgramVersion_target = '7.4.0.1658' # Set to version from MSI
$ProgramPath = "C:\Program Files\Fortinet\FortiClient\FortiClient.exe"
$ProgramVersion_current = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($ProgramPath).FileVersion
#$RegPath = "HKLM:\SOFTWARE\Fortinet\FortiClient\Sslvpn\Tunnels\$ProfileName"
#$RegContent = Get-ItemProperty -Path $RegPath
if(($ProgramVersion_current -eq $ProgramVersion_target) <#-and ($RegContent)#>){
Write-Host "Found it!"
}