From 6bc248acb8017d6cc6abf3e0f065050d49e2b2f6 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Fri, 17 Feb 2023 13:58:15 -0600 Subject: [PATCH] don't use alias in script --- .../index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/posts/psa-microsoft-kb5022842-breaks-ws2022-secure-boot/index.md b/content/posts/psa-microsoft-kb5022842-breaks-ws2022-secure-boot/index.md index c348ebc..e5210fc 100644 --- a/content/posts/psa-microsoft-kb5022842-breaks-ws2022-secure-boot/index.md +++ b/content/posts/psa-microsoft-kb5022842-breaks-ws2022-secure-boot/index.md @@ -36,8 +36,8 @@ I put together a quick PowerCLI query to help identify impacted VMs in my enviro ```powershell $secureBoot2022VMs = foreach($datacenter in (Get-Datacenter)) { $datacenter | Get-VM | - Where {$_.Guest.OsFullName -Match 'Microsoft Windows Server 2022' -And $_.ExtensionData.Config.BootOptions.EfiSecureBootEnabled} | - Select @{N="Datacenter";E={$datacenter.Name}}, + Where-Object {$_.Guest.OsFullName -Match 'Microsoft Windows Server 2022' -And $_.ExtensionData.Config.BootOptions.EfiSecureBootEnabled} | + Select-Object @{N="Datacenter";E={$datacenter.Name}}, Name, @{N="Running OS";E={$_.Guest.OsFullName}}, @{N="Secure Boot";E={$_.ExtensionData.Config.BootOptions.EfiSecureBootEnabled}},