Reorganization

Reorganization of resources to better prepare the repo for growth
This commit is contained in:
Kyle Ruddy
2016-07-07 19:07:46 -04:00
parent 24348d17c1
commit af35a7227c
12 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
function Get-BiosBootStatus {
<#
.NOTES
===========================================================================
Created by: Brian Graf
Organization: VMware
Official Blog: blogs.vmware.com/PowerCLI
Personal Blog: www.vtagion.com
Twitter: @vBrianGraf
===========================================================================
.DESCRIPTION
This will return the boot status of Virtual Machines, whether they
are booting to the Guest OS or being forced to boot into BIOS.
.Example
# Returns all VMs and where they are booting
Get-BiosBootStatus -VMs (Get-VM)
.Example
# Only returns VMs that are booting to BIOS
Get-BiosBootStatus (Get-VM) -IsSetup
#>
[CmdletBinding()]
param(
[Parameter(Mandatory=$true,
ValueFromPipeline=$True,
Position=0)]
[VMware.VimAutomation.ViCore.Impl.V1.Inventory.InventoryItemImpl[]]
$VM,
[switch]$IsSetup
)
Process {
if($IsSetup)
{
$Execute = $VM | where {$_.ExtensionData.Config.BootOptions.EnterBiosSetup -eq "true"} | Select Name,@{Name="EnterBiosSetup";Expression={$_.ExtensionData.config.BootOptions.EnterBiosSetup}}
}
else
{
$Execute = $VM | Select Name,@{Name="EnterBiosSetup";Expression={$_.ExtensionData.config.BootOptions.EnterBiosSetup}}
}
}
End {$Execute}
}