external help file | Module Name | online version | schema |
---|---|---|---|
Diag-V-help.xml |
Diag-V |
2.0.0 |
Returns status of all discovered VMs.
Get-VMStatus [-NoFormat] [[-Credential] <PSCredential>] [<CommonParameters>]
Automatically detects Standalone / Clustered Hyper-V and returns the status of all discovered VMs.
Get-VMStatus
Returns VM status information for all discovered VMs.
Get-VMStatus -Credential
Returns VM status information for all discovered VMs using the provided credentials.
Get-VMStatus -NoFormat | Where-Object {$_.name -eq 'Server1'}
Returns VM status information for all discovered VMs. Only date for Server1 will be displayed.
Get-VMStatus -NoFormat
Returns VM status information for all discovered VMs. Raw data object is returned with no processing done.
No formatting of return object. By default this function returns a formatted table object. This makes it look good, but you lose certain functionality, like using Where-Object. By specifying this parameter you get a more raw output, but the ability to query.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
PSCredential object for storing provided creds
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Author: Jake Morrison - @jakemorrison - https://techthoughts.info/ See the README for more details if you want to run this function remotely.