26 Commits

Author SHA1 Message Date
Brian Wuchner
248a86f0a2 Fixing instances of sort with sort-object
Fixes #535 - module using sort instead of sort-object causing unexpected behavior on powershell core/Linux.
Instead of only addressing the issue at hand, I looked for other instances of sort being used instead of sort-object for other modules within this repo and corrected those as well.  I think I got most of them, but feel free to raise another issue if you find another.  If the sort was in an example/help statement, or was inside the logic/process of the function, I replaced sort with sort-object.  In the one case where the sort was only applied to the output I removed the statement -- this way the function user can add the sort in their script and not have to sort output twice.  I changed a couple  select/where with select-object/where-object along the way as well just as I saw them.

Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
2022-02-03 20:11:02 -05:00
dmilov
fb641c8a1c License PowerCLI-Examples-Scripts repository under BSD-2 Clause (#462)
As part of the VMware open source program, we have to update this repository with the correct license and copyright information.
We add the BSD-2 Clause License for this repository.
We mark all source code provided by VMware with the Copyright notice under BSD-2 Clause license.

* Update repository license to BSD 2-Clause License

* Update Copyright
2021-06-07 09:58:47 +03:00
Baoyin Qiao
0d4ba8b4dc Update VMware.VMEncryption.psm1
Update the Set-VMHostCryptoKey to make the RemoveKeys() only apply to vSphere 6.5 and not remove host key when it is in use.
2019-12-23 17:34:19 +08:00
simonfangyingzhang
e36208e2db Update VMware.VMEncryption.psd1
VMware.VimAutomation.Core 10.1.0.8344055 instead of VMware.VimAutomation.Core 10.1.0.8346946
2018-07-03 03:25:29 +01:00
Chong Yeo
de8d765719 Add the following Cmdlets for vTPM Support and also change minor version from 1.1 to 1.2
Add-Vtpm
Remove-Vtpm
Get-VtpmCsr
Set-VtpmCert
Get-VtpmCert
2018-05-23 14:18:13 -07:00
Chong Yeo
de1197d0e6 Revert "1. Add the following Cmdlets for vTPM Support"
This reverts commit 8dbea3ac24.

Reverting because there were some merge conflicts that got away.
2018-05-23 11:50:25 -07:00
Chong Yeo
8dbea3ac24 1. Add the following Cmdlets for vTPM Support
Add-Vtpm
Remove-Vtpm
Get-VtpmCsr
Set-VtpmCert
Get-VtpmCert
2.  Minor Version Change from 1.1 to 1.2
2018-05-22 10:38:35 -07:00
simonfangyingzhang
95138e128f Update VMware.VMEncryption.psd1 2018-04-27 05:10:09 +01:00
simonfangyingzhang
60aafba7ae Update VMware.VMEncryption.psd1 2018-04-27 05:03:22 +01:00
simonfangyingzhang
3b44fbcf20 Update VMware.VMEncryption.psd1 2018-04-27 04:53:24 +01:00
simonfangyingzhang
9bd66f1a66 Update VMware.VMEncryption.psm1 2018-04-27 04:50:10 +01:00
simonfangyingzhang
049e621fb6 Update VMware.VMEncryption.psm1 2018-04-27 04:45:44 +01:00
simonfangyingzhang
29719d6ca7 Update VMware.VMEncryption.psm1 2018-04-27 04:42:18 +01:00
simonfangyingzhang
13649b8e35 Update VMware.VMEncryption.psm1 2018-04-27 04:32:55 +01:00
simonfangyingzhang
df9d71d4e0 Update VMware.VMEncryption.psm1
1, added new function Set-VMCryptoUnlock
2, deprecating functions related to KMServer and KMSCluster from VMware.VMEncryption
2018-04-27 04:22:42 +01:00
simonfangyingzhang
d70bee9f99 Update VMware.VMEncryption.psd1 2018-04-27 04:19:53 +01:00
simonfangyingzhang
d4f4e64ca3 Deprecating functions related to KMServer and KMSCluster from VMware.VMEncryption 2018-04-27 04:18:51 +01:00
Chris
a47369a295 Minor Spelling corrections generted->generated
Minor Spelling corrections generted->generated in Get-Help examples
2017-11-20 15:22:21 +00:00
Chris
038742d872 Update VMware.VMEncryption.psm1
Example for Get-Help was using $SetVMEncryptionKey rather than SetVMDiskEncryptionKey ($ sign and other command used)
2017-09-26 14:53:08 +01:00
simonfangyingzhang
11330a67ac New-VIProperty KMSserver per Mike Foley
New-VIProperty KMSserver per Mike Foley
2017-08-22 07:44:26 +01:00
Mike Foley
ea23bb0568 Update VMware.VMEncryption.psm1
Added missing parenthesis at line 277 position 35.
2017-01-18 15:33:50 -05:00
yangm
7d49541a25 add 1 property and 1 function for vMotionEncryption 2016-12-20 19:41:59 -08:00
yangm
ce69869e8a add 1 property to VM, 1 function 2016-12-19 00:29:52 -08:00
baoyinqiao
9f8d094e38 Fix the indentation of Encrypted Property of disk
Identation fix.
2016-12-14 09:02:47 +08:00
baoyinqiao
7a5ae91379 Add a new VIProperty: KMSserver for VM
As Mike suggested, add a new VI Property to retrieve the KMSserver
ClusterId for encrypted VMs.
2016-12-14 08:57:43 +08:00
baoyinqiao
1977251e8f Add a VMEncryption module
Add a module which include VMEncryption related functions/cmdlets.
2016-12-09 15:31:03 +08:00