Score:-3

how to determine if I have the latest security update or not by powershell?

cn flag

I'm a beginner to exchange server and powershell, I'm working on Exchange server (on-premise), how can I determine if I have the latest updates, security update, version of windows server (core) and exchange server, or not, so I have to update it? (by powershell).

Thanks in advance

Jevgenij Martynenko avatar
us flag
The answer is right in the Microsoft docs on patching server core. Easily found using your favorite search engine
Ivan_Wang avatar
us flag
Hi, it's been a while, any update?
Score:0
us flag

As far as I know, there doesn't seem to be any script or commands which can detect if the current versions of Exchange and windows server are latest.

The available methods are to manually get the current versions, and then compare with the microsoft docs:

1 Navigate to the following location: Control Panel -> Uninstall a program & View installed updates

enter image description here

enter image description here

2 Run the following commands as administrator in Exchange PowerShell:

$ExchangeServers = Get-ExchangeServer | Sort-Object Name
ForEach ($Server in $ExchangeServers)
{
Invoke-Command -ComputerName $Server.Name -ScriptBlock { Get-Command Exsetup.exe | ForEach-Object { $_.FileversionInfo } }
}

enter image description here

enter image description here


Or you can navigate to the following location: Control Panel\System and Security\Windows Update\Change settings, and check the checkbox "Give me updates for other Microsoft products when I update Windows" so that you will get the latest SU versions of Exchange server and patch versions of windows server when checking for updates:

enter image description here

Score:0
us flag

You can use Exchange Server Health Checker Script on GitHub to see if server up to date or not:
https://github.com/dpaulson45/HealthChecker#download

  1. On your server, open EMS and then open the folder where you’ve downloaded the HealthChecker.ps1 PowerShell script. Now Run following command

.\HealthChecker.ps1 enter image description here

  1. This script will list all the security vulnerabilities that you need to patch. If you see multiple vulnerabilities, or if your Exchange server is compromised then you need to use EOMT. You can refer following links: Microsoft Exchange Remote Code Execution Vulnerability Flaws and Their Fixes

https://techcommunity.microsoft.com/t5/exchange-team-blog/exchange-health-checker-has-a-new-home/ba-p/2306671

https://petri.com/understanding-exchange-server-updates-and-the-process-to-patching

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.