Syntax
Get-SecurityInfo [-Entity] <VIObjectCore[]> [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Unblock-VMDetailed Description
This cmdlet retrieves the security information of objects. Returns the SecurityInfo instance that corresponds to the specified object.Parameters
Return Type
VMware.VimAutomation.Security.Types.V1.SecurityInfo.html">SecurityInfo.SecurityInfo.html">SecurityInfoNotes
The supported entities are only VirtualMachine, HardDisk and VMHost.Examples
-------------------------- Example 1 --------------------------
Get-SecurityInfo -Entity MyObj*
Retrieves the security information of all the virtual machines and all the VMHosts whose names starting with "MyObj".
-------------------------- Example 2 --------------------------
Get-VM MyVM | Get-HardDisk | Get-SecurityInfo
Retrieves security information of all disks of 'MyVM' virtual machine.
-------------------------- Example 3 --------------------------
$vmHosts = Get-VMHost Get-SecurityInfo -Entity $vmHosts
Retrieves security information of all the VMHosts available on the connected servers.
-------------------------- Example 4 --------------------------
$myVm1 = Get-VM -Name MyVM1 $myVm2 = Get-VM -Name MyVM2 Get-SecurityInfo -Entity $myVM1, $myVM2
Retrieves security information of the given two virtual machines.