mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-12-23 11:32:17 +00:00
don't use alias in script
This commit is contained in:
parent
08386267ab
commit
6bc248acb8
1 changed files with 2 additions and 2 deletions
|
@ -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}},
|
||||
|
|
Loading…
Reference in a new issue