mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-23 15:32:19 +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
|
```powershell
|
||||||
$secureBoot2022VMs = foreach($datacenter in (Get-Datacenter)) {
|
$secureBoot2022VMs = foreach($datacenter in (Get-Datacenter)) {
|
||||||
$datacenter | Get-VM |
|
$datacenter | Get-VM |
|
||||||
Where {$_.Guest.OsFullName -Match 'Microsoft Windows Server 2022' -And $_.ExtensionData.Config.BootOptions.EfiSecureBootEnabled} |
|
Where-Object {$_.Guest.OsFullName -Match 'Microsoft Windows Server 2022' -And $_.ExtensionData.Config.BootOptions.EfiSecureBootEnabled} |
|
||||||
Select @{N="Datacenter";E={$datacenter.Name}},
|
Select-Object @{N="Datacenter";E={$datacenter.Name}},
|
||||||
Name,
|
Name,
|
||||||
@{N="Running OS";E={$_.Guest.OsFullName}},
|
@{N="Running OS";E={$_.Guest.OsFullName}},
|
||||||
@{N="Secure Boot";E={$_.ExtensionData.Config.BootOptions.EfiSecureBootEnabled}},
|
@{N="Secure Boot";E={$_.ExtensionData.Config.BootOptions.EfiSecureBootEnabled}},
|
||||||
|
|
Loading…
Reference in a new issue