Commit Graph

1000 Commits

Author SHA1 Message Date
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
Kyle Ruddy
ca6c566257 Merge pull request #128 from mtelvers/master
Updates to New-HVPool
2017-10-16 12:13:32 -04:00
mtelvers
754e9300eb Updates to New-HVPool
Removed parameter -Deleting which isn't used and is a read-only property anyway
Corrected automatic Logoff Minutes validation range which is 1.. rather than 1..120
Updated the validation set for delete or refresh machines after log off.  From the API, valid options are Never, Delete, Refresh not Never, Delete, After
Allowed selecting the AD Container when creating Linked Clones
2017-10-16 10:03:30 +01:00
Kyle Ruddy
b39e6394db Merge remote-tracking branch 'vmware/master' 2017-10-14 15:53:39 -04:00
Kyle Ruddy
bfefc8d321 Merge pull request #127 from kmruddy/master
Resource Clean up and New Script
2017-10-14 15:51:04 -04:00
Kyle Ruddy
c0a851cc0b Merge pull request #122 from jrob24/master
Add vCenter.Alarms module
2017-10-14 15:50:20 -04:00
Kyle Ruddy
795bcccad8 Get-VMNetworkPortId
This script can be used to find the network Port-ID on the lost host.
2017-10-14 15:36:58 -04:00
Kyle Ruddy
accbd83eff Clean Up
Moving script resources to the scripting folder.
2017-10-14 15:36:06 -04:00
Kyle Ruddy
e444ed58ef Merge remote-tracking branch 'vmware/master' 2017-10-14 15:33:26 -04:00
Kyle Ruddy
89de49c58f Merge pull request #126 from mtelvers/master
Updated Set-HVPool and add function Set-HVGlobalEntitlement
2017-10-11 20:57:14 -04:00
mtelvers
04aabda1ba Updated Set-HVPool and add function Set-HVGlobalEntitlement
Add -globalEntitlement parameter to Set-HVPool to allow pool to be associated with a globalentitlement. Previously this was only possible through the New-HVPool cmdlet. Added cmdlet Set-HVGlobalEntitlement to allow global entitlements to be updated
2017-10-09 12:10:33 +01:00
Kyle Ruddy
7019556842 Merge pull request #123 from isjwuk/patch-1
Update VMware.VMEncryption.psm1
2017-10-05 11:05:22 -04:00
Kyle Ruddy
eeef520611 Merge pull request #125 from lamw/master
Adding VMware Fusion Module
2017-10-05 11:04:22 -04:00
Kyle Ruddy
45192ff5ae Merge pull request #121 from lukaswinn/patch-1
Create vCenterSnapshot.ps1
2017-10-05 10:55:19 -04:00
William Lam
677d0c211d Adding VMware Fusion Module 2017-10-04 14:26:05 -07: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
jrob24
76556f26c2 Initial commit 2017-09-21 23:33:30 -05:00
jrob24
6365ed0bd1 Delete New-vCenterAlarms.ps1 2017-09-21 23:32:58 -05:00
jrob24
16530f256d Delete vCenter.Alarms.psm1 2017-09-21 23:31:44 -05:00
jrob24
e8896d388f Add files via upload 2017-09-21 23:30:31 -05:00
Lukas Winn
3b3197b04a Create vCenterSnapshot.ps1
Script to retrieve snapshot information for all VM's in a given vCenter
2017-09-21 16:46:41 +01:00
Kyle Ruddy
4f07508e42 Merge pull request #120 from isjwuk/master
Submitting Get-TotalMemoryAllocation.ps1 and Get-TotalDiskUsage.ps1
2017-09-20 15:36:29 -04:00
Chris
78d606ab44 Rename Get-TotalDiskUsage to Get-TotalDiskUsage.ps1 2017-09-20 19:38:14 +01:00
Chris
da2cf62c1b Create Get-TotalMemoryAllocation.ps1 2017-09-20 19:37:36 +01:00
Chris
434d8c2b9b Created Get-TotalDiskUsage 2017-09-20 19:34:38 +01:00
Kyle Ruddy
2a3eb898de Merge pull request #119 from Mr-Uptime/patch-2
SetClusterMultiPathToRoundRobin
2017-09-20 11:20:17 -04:00
Kyle Ruddy
a929b1a50c Merge pull request #118 from Mr-Uptime/patch-1
SetHostMultiPathToRoundRobin
2017-09-20 11:11:20 -04:00
Kyle Ruddy
bcb2d21d64 Merge pull request #117 from soggychipsnz/patch-1
get-peakvms
2017-09-20 11:10:09 -04:00
Kyle Ruddy
9fe3a3ca85 Merge pull request #116 from sammcgeown/ha-vcenter-deploy
Added HA vCenter deploy script
2017-09-20 11:09:17 -04:00
Kyle Ruddy
40b34e3b21 Merge pull request #115 from mycloudrevolution/VMware-vCD-TenantReport
New Module VMware-vCD-TenantReport
2017-09-20 10:59:59 -04:00
Kyle Ruddy
24799047a2 Merge pull request #111 from haberstrohr/master
Get-VMHostWWPN
2017-09-20 10:35:17 -04:00
Kyle Ruddy
5e9396c24f Merge pull request #110 from mycloudrevolution/VMware-vCD-Module-Update
Add New Edge Gateway
2017-09-20 10:34:33 -04:00
Kyle Ruddy
6c370b7f96 Merge pull request #109 from kdmhorn/master
Create vmCreationNotes.ps1
2017-09-20 10:33:04 -04:00
Kyle Ruddy
7375f0a53a Merge pull request #107 from VTsnowboarder42/patch-1
Create Get-BasicVMCapacityReport
2017-09-20 10:23:07 -04:00
Kyle Ruddy
22a611e538 Merge pull request #106 from Derek-Charlekston/patch-1
Create get-ping.ps1
2017-09-20 10:22:27 -04:00
Kyle Ruddy
0de5cbe2e0 Merge pull request #105 from pezhore/feature/get-civmdata
Added CIVM Data gathering function for vCD export/Migration
2017-09-20 10:21:29 -04:00
Alan Comstock
fee53a0565 Create SetClusterMultiPathToRoundRobin.ps1 2017-09-14 10:42:04 -05:00
Alan Comstock
b10e560615 Update SetMultiPathToRoundRobin 2017-09-13 12:37:15 -05:00
Alan Comstock
0d461ab72b Create SetMultiPathToRoundRobin 2017-09-13 10:29:57 -05:00
soggychipsnz
2b9aa80b36 get-peakvms
This script will interrogate vcenter to find the peak users of network or storage usage. 
This was quite handy for me to quickly identify the source of issues such as an inbound DDOS, outbound DOS or a server pummiling storage due to swapping/etc.
2017-09-13 11:23:36 +01:00
Sam McGeown
b8055b7ed8 Added script description
removed extra .md file
2017-09-08 17:44:16 +01:00
Sam McGeown
b89bd7ab5a Added HA vCenter Deploy script
Added HA vCenter Deploy script, configuration JSON file and note with link to my blog post detailing how to use it
2017-09-08 17:40:08 +01:00
mycloudrevolution
1ed68eeab2 New Module VMware-vCD-TenantReport
This Module Creates a nice HTML Report for vCD Customers. Report
Contains Objects like Users, Catalogs, VDCs, vApps, VMs, Edge Gateways
2017-09-01 15:45:18 +02:00
haberstrohr
fc90f81d88 Get-VMHostWWPN
Returns WWPN in Base16 format, similar to what is displayed in the GUI.
2017-08-31 10:02:54 -05:00