Commit Graph

793 Commits

Author SHA1 Message Date
Kyle Ruddy cd2e8503ba Merge pull request #160 from benmeadowcroft/master
Initial commit to Examples of SRM-Cmdlets
2018-01-31 11:21:21 -05:00
Ben Meadowcroft 61aead2685 Initial commit to Examples of SRM-Cmdlets 2018-01-30 21:03:35 -08:00
Kyle Ruddy 4c645a7393 Merge pull request #156 from kmruddy/master
Add PowerCLI_FixNestedFolders.ps1
2018-01-18 11:39:22 -05:00
Kyle Ruddy ecdd19911f Add PowerCLI_FixNestedFolders.ps1
Add script to help remove the nested version folders when moving
PowerCLI module folders from systems with PoSh 5.x to 4.0/3.0 systems
that can’t properly understand those versioned folders.

More info:
https://blogs.vmware.com/PowerCLI/2018/01/powercli-offline-installation-
walkthrough.html
2018-01-18 08:37:38 -08:00
Kyle Ruddy 5e844cf2cf Merge remote-tracking branch 'vmware/master' 2018-01-18 08:31:53 -08:00
Kyle Ruddy b21e3d4fc0 Merge pull request #154 from JoshuaCooper/master
Fixing spelling errors and grammar issues
2018-01-11 16:33:05 -05:00
cloudcowboyco 5bee9abf62 Fixing spelling errors and grammar issues 2018-01-11 15:57:17 -05:00
Kyle Ruddy 02286dbe53 Update VMToolsManagement.psm1
Update the quotes on line 1222 so that the module import no longer errors out.
2018-01-09 14:55:28 -05:00
Kyle Ruddy 23f215be35 Update VMToolsManagement.psm1
Added advanced function: Get-VMToolsUpgradePolicy
Updated the following advanced functions to add functionatlity:
- Set-VMToolsUpgradePolicy - Supports UpgradeAtPowerCycle and Manual
- Update-VMToolsConfInVM - Supports all log levels now
Misc other minor updates: 
- cmdlets changed to 'advanced function'
- 'vcetner' changed to 'vcenter'
2018-01-05 16:13:39 -05:00
Kyle Ruddy 7217cec777 Merge pull request #149 from lamw/master
PowerCLI Module using Cross vCenter Migration Utility Fling API
2017-12-20 12:44:16 -05:00
William Lam b5800f0eff PowerCLI Module using Cross vCenter Migration Utility Fling API 2017-12-20 08:37:38 -08:00
lucdekens dd9a0a16fa Merge pull request #148 from vmware/rCisTag-module
Rcistag module
2017-12-02 23:27:44 +01:00
LucD 6c50bef798 rCisTag-Examples
Add examples to rCisTag module
2017-12-02 23:25:35 +01:00
LucD 1739af675a Merge remote-tracking branch 'refs/remotes/origin/master' into rCisTag-module 2017-12-02 22:37:19 +01:00
Kyle Ruddy c645366e5c Merge pull request #147 from vmware/rCisTag-module
Add module rCisTag
2017-12-02 08:42:22 -05:00
lucdekens 2c2b16457c Add module rCisTag
Module rCisTag provides CRUD functions for Tags, Tag Categories and Tag Assignments.
The functions use the Cis REST API functions.
This is a beta release (0.9.0), feedback welcome.
2017-12-01 23:08:04 +01:00
Kyle Ruddy 240394e2ed Merge pull request #144 from isjwuk/patch-2
Minor Spelling corrections generted->generated
2017-11-29 09:16:44 -05:00
Kyle Ruddy 83463ba97e Merge pull request #145 from lamw/master
Export/Import functions for manual vCenter Server Migrations
2017-11-29 09:16:23 -05:00
Kyle Ruddy bb1869411c Merge pull request #146 from alanrenouf/master
New VMware Cloud on AWS functions module
2017-11-29 09:15:55 -05:00
alanrenouf d6861d38fb New VMware Cloud on AWS functions module 2017-11-28 22:48:08 -08:00
William Lam d104a29393 Might be useful if I actually added directory 2017-11-21 09:38:24 -08:00
William Lam cdfd510dd9 Whoops, missed folder for module 2017-11-21 09:37:27 -08:00
William Lam dc6b02a95a Export/Import functions for manual vCenter Server Migrations 2017-11-21 07:39:22 -08: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
Kyle Ruddy 84503224b8 Merge pull request #143 from lamw/master
Updating Content Library Module
2017-11-16 00:34:26 -05:00
Kyle Ruddy 902899f067 Merge pull request #142 from daoyuan023/vmtools_management
Create VMToolsManagment for VMTools upgrade, guest info query .etc
2017-11-16 00:33:28 -05:00
Kyle Ruddy e4245533cd Merge pull request #139 from mtelvers/master
Fixes to Get-HVDatastore() when multiple datastores are specified
2017-11-16 00:32:11 -05:00
William Lam 2d429c6271 Forgot to un-comment the delete code 2017-11-14 06:45:58 -08:00
William Lam 9f2fc3ec06 Adding several new Content Library functions 2017-11-14 06:25:50 -08:00
daoyuanw 14256a32a8 Add VMToolsManagment for VMTools upgrade, guest info query .etc 2017-11-14 14:43:47 +08:00
mtelvers ea1178a308 Merge branch 'master' of https://github.com/mtelvers/PowerCLI-Example-Scripts 2017-11-06 11:15:35 +00:00
mtelvers 77d44734d4 Add Get-HVResourceStructure to display the Resouce Pool structure
Display the resource pools available to the Horizon View server
2017-11-06 11:15:26 +00:00
Kyle Ruddy 02364c5687 Merge pull request #136 from spartyzik/fix-Get-VMNetworkPortId
Use the item in foreach rather than collection
2017-11-05 20:29:32 -05:00
mtelvers 6b4bbf562d Delete .VMware.HV.Helper.psm1.swp 2017-11-03 17:18:55 +00:00
mtelvers 9e588e39c9 Added -ResourcePool to Set-HVPool
Update Set-HVPool to allow you to set a new resource pool within the same host/cluster
2017-11-03 17:13:44 +00:00
mtelvers d406e54b19 Fix to New-HVPool when persistent datastores are specified
Function Get_Datastore should read Get-HVDatastore
2017-11-03 11:17:27 +00:00
mtelvers 5879c10003 Fixes to Get-HVDatastore() when multiple datastores are specified
`$Datastores` needs to be initialized as an empty array `@()` rather than `$null`.  Furthermore, if `$DsStroageOvercommit` is empty it is only initialised with a single element where there should be one element per datastore.  I've moved the test into the loop instead.
2017-11-02 22:18:41 +00:00
Unknown df32c59148 Use the item in foreach rather than collection
Error message should use $v rather than $vm
2017-10-31 11:17:36 -04:00
Kyle Ruddy 0b6d1dd793 Merge pull request #133 from Mr-Uptime/patch-5
Multipath to Round Robin on all FC disks in cluster
2017-10-30 22:58:39 -04:00
Kyle Ruddy ebf92d8130 Merge pull request #131 from mtelvers/master
Improved searching for Host and Clusters, Resource Pools and Access G…
2017-10-30 22:58:07 -04:00
Kyle Ruddy e785ef98a4 Merge pull request #134 from Mr-Uptime/patch-6
Adds VLANs to an existing standard switch
2017-10-30 22:57:14 -04:00
Kyle Ruddy 7947f2c95e Merge pull request #135 from lamw/master
Adding NSXT Module
2017-10-30 22:56:48 -04:00
William Lam 77adef309d Adding NSXT Module 2017-10-29 13:45:29 -07:00
Alan Comstock dc523953ca Adds VLANs to an existing standard switch
This script will add VLANs to an existing standard switch on a host.
Information needed:
$esxhost - Name of host
$vswitch - Name of existing standard switch
$vlanlist - List of all the VLANs you want to add to the switch
2017-10-27 09:25:47 -05:00
Alan Comstock 76820423a4 Multipath to Round Robin on all FC disks in cluster
This will configure multipath to round robin and IOPS to 1 on all disks in a cluster based upon the vendor type.
This script is configured for 3par LUNs.  Change $vendor for other storage types/vendors.
2017-10-27 09:16:39 -05:00
mtelvers c2f137c812 Updates to Set-HVPool
Updated Set-HVPool to address issue #132.  The -Start and -Stop parameter tested the wrong variable in the loop.  $item is undefined.  Furthermore, in general if the key/value pair specified $false as the value then the parameter wasn't seen in simple logic test such as if ($key -and $value) {}.  I've updated to use $PSBoundParameters instead.
2017-10-27 08:52:44 +01:00
mtelvers dfd5a4e37e Fix for Find-HVMachine if no match is found in the first 1000 results
If no match was found in the first 1000 results then the QueryService_GetNext() was never called as it used the length of the result array to detect the second pass through the loop
2017-10-25 17:22:20 +01:00
mtelvers 1edf24432c Improved searching for Host and Clusters, Resource Pools and Access Groups
Add three new internal functions Get-HVHostOrClusterID, Get-HVResourcePoolID and Get-HVAccessGroupID to search the tree results of HostOrCluster_GetHostOrClusterTree(), ResourcePool_GetResourcePoolTree() and AccessGroup_List() respectively.  Previously only the top level of the result tree from these calls where considered which was raised as issue #88.  The solutions provided in the discussions were point fixes as they changed the level of the tree which was searched which missed matches at the other and the original levels.
2017-10-18 08:54:42 +01:00
Kyle Ruddy 78c91088f4 Merge pull request #130 from mtelvers/master
Updated Find-HVMachine
2017-10-16 16:06:31 -04:00
mtelvers ba61e6bb0f Updated Find-HVMachine
Updated Find-HVMachine to use the iterative query service, QueryService_Create() rather than the quick QueryService_Query()
2017-10-16 19:11:49 +01:00