From dba26b7b2baa7e295c6da6d3c5b8741a8571e152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Mu=CC=88nch?= Date: Sun, 21 Apr 2024 12:38:12 +0200 Subject: [PATCH] add query to collect the Windows Exchange Server version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick Münch --- core/mondoo-windows-inventory.mql.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/mondoo-windows-inventory.mql.yaml b/core/mondoo-windows-inventory.mql.yaml index 4f8ca21..ca5ffd9 100644 --- a/core/mondoo-windows-inventory.mql.yaml +++ b/core/mondoo-windows-inventory.mql.yaml @@ -137,3 +137,9 @@ packs: title: Logged-in users mql: | parse.json(content: powershell("Get-Process -IncludeUserName explorer | Select-Object Username | ConvertTo-Json").stdout).params + - uid: mondoo-windows-exchange-server-version + title: Exchange Server Version + filters: | + package('Microsoft Exchange Server').installed + mql: | + powershell('(Get-Command ExSetup.exe | ForEach-Object { $_.FileVersionInfo } | Select-Object -First 1).FileVersion').stdout