Commit Graph

92 Commits

Author SHA1 Message Date
Matt Frey
760c534cf7 Update VMware.HV.Helper.psm1
Added -DeleteFromDisk parameter to Remove-HVMachine
Performed some minor cleanup (remove trailing whitespaces, capitalization)
2018-09-07 11:02:42 -05:00
Wouter Kursten
a24fbf4e95 added extra query deifinitions
added Eventsummaryview and GlobalApplicationEntitlementInfo as they are newly added since PowerCLI 10.1.1
2018-08-13 09:07:37 +02:00
Wouter Kursten
fc270dc256 Added Clear-HVEventDatabase 2018-07-24 20:41:51 +02:00
Wouter Kursten
348eb1899e added function Get-HVEventDatabase 2018-07-24 19:53:53 +02:00
Wouter Kursten
b096ace8ae added function Set-HVEventDatabase 2018-07-24 19:33:41 +02:00
Wouter Kursten
355d499301 remove break issue #211
remove break issue https://github.com/vmware/PowerCLI-Example-Scripts/issues/211
2018-07-17 20:40:58 +02:00
Wouter Kursten
2200c4d25d fix 2018-07-11 14:17:56 +02:00
Wouter Kursten
f567922869 Several changes
added new-hvhomesite, get-hvhomesite
removed new-hvpassword (never pulled to master)
2018-07-06 09:32:23 +02:00
Wouter Kursten
8c0e1985b1 Merge pull request #4 from vmware/master
.
2018-05-22 20:30:44 +02:00
Wouter Kursten
73d7eaa992 added function to create vmware.hv.securestring password 2018-05-22 19:22:02 +02:00
Kyle Ruddy
c6607eb188 Merge pull request #191 from Magneet/master
removed showing of plain password
2018-05-21 11:43:09 -04:00
Wouter Kursten
748adc6f27 removed showing of plain password 2018-05-09 19:29:20 +02:00
jrodsguitar
f4ba11fe75 Added Remove-HVMachine to Export-ModuleMember 2018-04-29 12:27:58 -07:00
jrodsguitar
056df11512 Fixed PR conflict and Merged 2018-04-29 12:23:26 -07:00
Wouter Kursten
fc02a60eaf fixes for podfederations and sites 2018-04-28 17:04:32 +02:00
Wouter Kursten
c4c92f7a87 Added Site functions 2018-04-26 10:27:36 +02:00
Wouter Kursten
373b909095 added multiple podfederation functions 2018-04-25 11:52:50 +02:00
Jose Rodriguez
054d127f12 Making sure Get-ViewAPIService is there. 2018-04-09 02:04:20 -07:00
Jose Rodriguez
7235de655d Various modifications per feedback.
Now using Get-ViewAPIService to connect. Now using $services variable instead of $viewapi.
2018-04-09 01:58:24 -07:00
Jose Rodriguez
245cacae25 Revert "Revert "Adding Remove-HVMachine function""
This reverts commit cdff3035cc.
2018-04-08 20:48:30 -07:00
Jose Rodriguez
cdff3035cc Revert "Adding Remove-HVMachine function"
This reverts commit c265c50447.
2018-04-08 20:46:38 -07:00
Jose Rodriguez
c265c50447 Adding Remove-HVMachine function 2018-04-08 15:00:08 -07:00
Wouter Kursten
969d31fcfb added pod to get-hvhealth 2018-04-08 10:56:34 +02:00
Wouter Kursten
5a0bb408ba Added get-hvhealth 2018-04-07 11:26:06 +02:00
Kyle Ruddy
b2d62e84ad Merge pull request #174 from spartyzik/master
Get-HVPoolStorageObject bug fix
2018-03-06 20:44:46 -05:00
Kyle Ruddy
f8d285e9b5 Merge pull request #171 from Magneet/master
replaced return of vcenter vm id's
2018-03-06 20:43:05 -05:00
Ed Symanzik
aaed5597d6 Get-HVPoolStorageObject bug fix
Function prepares variable $datastoreList but uses $datastoreInfoList.
2018-03-06 09:26:22 -05:00
Wouter Kursten
9282c79c86 getnext placed on the wrong spot 2018-03-03 10:23:22 +01:00
Wouter Kursten
cda9bd36e1 replaced return of vcenter vm id's
replaced some return of vcenter vm id's that gave back some hardly usefull information to the user. Now it gives a successfully add... message
2018-02-26 22:01:33 +01:00
Kyle Ruddy
a6f8d7db15 Merge pull request #166 from Magneet/master
Multiple fixes, removal and new functions in vmware.hv.helper
2018-02-12 09:53:50 -05:00
Wouter Kursten
f7da4a963f added reset-hvmachine 2018-02-10 15:44:12 +01:00
Wouter Kursten
f0f5ec7967 Removed get-hvpodsession, added get-hvglobalsession
get-hvpodsession only got a count + naming was incorrect (it was global but name said pod) get-hvglobalsession actually enumerates all global sessions
2018-02-10 10:32:10 +01:00
Wouter Kursten
0109a2d0d2 Update VMware.HV.Helper.psm1 2018-02-05 16:31:46 +01:00
Wouter Kursten
5dfaf81e73 added if for groupfilter in get-hventitlement
https://github.com/vmware/PowerCLI-Example-Scripts/issues/167
2018-02-05 10:55:56 +01:00
Wouter Kursten
e73ababdcc Added get-hvlocalsession
added this new cmdlet to make it easier to get a list of all sessions from the local pod. Method is based on the way find-hvmachine works to work around the maximum of 2000 results the queries normally have.
2018-02-04 14:03:23 +01:00
mtelvers
3e50b4ebde Update to Set-HVMachine to ease the assignment to users machines 2018-02-03 16:35:33 +00:00
mtelvers
9c2b190faa Update to Remove-HVEntitlement()
See Issue #163
2018-02-03 13:55:28 +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
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
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
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
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
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
Matt Frey
704251045d Add Get-HVGlobalSettings and Set-HVGlobalSettings
2 new functions to Get and Set VMware.Hv.GlobalSettingsInfo
2017-06-13 23:13:15 -05:00
praveenmathamsetty
c15b76c8d1 Merge branch 'master' into master 2017-05-17 23:21:53 +05:30
PARAMESHO
4936b79a5c Updating the description of the advanced functions for ApplicationIcon
Updating the description of the advanced functions for ApplicationIcon
2017-05-16 14:56:21 +05:30