Merge pull request #123 from isjwuk/patch-1

Update VMware.VMEncryption.psm1
This commit is contained in:
Kyle Ruddy
2017-10-05 11:05:22 -04:00
committed by GitHub

View File

@@ -1034,7 +1034,7 @@ Function Set-VMDiskEncryptionKey {
C:\PS>$KMSCluster = Get-KMSCluster | select -last 1
C:\PS>$VM = Get-VM -Name win2012
C:\PS>$HardDisk = get-vm $vm|Get-HardDisk
C:\PS>$HardDisk|$Set-VMEncryptionKey -VM $VM -KMSClusterId $KMSCluster.Id -Deep
C:\PS>$HardDisk| Set-VMDiskEncryptionKey -VM $VM -KMSClusterId $KMSCluster.Id -Deep
Deep rekeys all the disks of the $VM using a new key.
The key is generted from the KMS whose clusterId is $KMSCluster.Id.