Pages

Wednesday, 16 March 2022

Powershell script to to check te application version through app name

$driverversion = "7.5.7"

$version = (Get-WmiObject -Class Win32_Product | where Name -like "Sentinel System Driver Installer*" | select Version).version

If ($version -ge $driverversion){
Write-host "Already same or higher version of driver already installed in the machine"
}

Else {
Write-host "Application not found"
}

test

        $reboot = Get-PendingReboot Write-Log - Message "Checking for pending reboot status..." if ( $reboot .IsSystemRebootPe...

Search This Blog