Commit Graph

69 Commits

Author SHA1 Message Date
Jose Rodriguez
c265c50447 Adding Remove-HVMachine function 2018-04-08 15:00:08 -07: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
PARAMESHO
8337b98633 Advanced functions for customizing Application icons in Horizon
This changes adds two advanced functions:
Set-HVApplicationIcon -> Used to create/update an icon association for a
given application.
Remove-HVApplicationIcon -> Used to remove a customized icon association
for a given application.
2017-05-16 14:48:36 +05:30
praveenmathamsetty
3d0c65b802 merge changes related to Get-HVPodSessions
pull request https://github.com/vmware/PowerCLI-Example-Scripts/pull/71
2017-05-15 17:25:20 +05:30
Wouter Kursten
ae429792ed removed brake for issue #74 2017-04-26 18:58:32 +02:00
praveenmathamsetty
8c2915fc2d Merge remote-tracking branch 'origin/master'
# Conflicts:
#	Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1
2017-04-21 21:13:00 +05:30
praveenmathamsetty
720595989a Add readme file
Add readme file, versions for "VMware.Hv.Helper" module.
2017-04-21 20:58:12 +05:30
Rasmus Sjoerslev
d1fc624c57 Changed the name of the cmdlet from Get-HVPodSessions to Get-HVPodSession 2017-04-06 11:47:20 +02:00
Rasmus Sjoerslev
294863d495 Added Get-HVPodSessions function to VMware.Hv.Helper.psm1 which will show all connections across a Pod Federation. See Synopsis and Description for more details 2017-04-05 21:06:18 +02:00
praveenmathamsetty
a8dbe63929 Update VMware.HV.Helper.psm1
Updated AF Version and Horizon build no.
2017-03-31 17:00:57 +05:30
praveenmathamsetty
94f8f19d84 Adding prefix to output message
Adding prefix to output message in AF Get-HVMachine
2017-02-22 18:48:24 +05:30
praveenmathamsetty
10b540c8c8 suppress text Info bug fix
suppress text Info bug fix
2017-02-21 00:27:38 +05:30
praveenmathamsetty
373579a291 Suppresstext info
Suppress text info, when no result found with given search parameters.
2017-02-21 00:22:19 +05:30
praveenmathamsetty
f6aebe0c7b MaintenanceSettings fix for farm
MaintenanceSettings fix for instant clone farm
2017-02-17 18:07:18 +05:30
praveenmathamsetty
b885a9a394 Updating Resource Name Get Help for AF HVEntitlement.
Updating Resource Name for Get Help for Advanced function HVEntitlement.
2017-02-15 20:25:48 +05:30
praveenmathamsetty
60f4948ea7 Changing Information message
Changing Information message in entitlements.
2017-02-10 16:06:49 +05:30
praveenmathamsetty
dcf76d6b1a Example Text correction
Example Text  correction
2017-02-10 15:06:02 +05:30
praveenmathamsetty
49834682a9 Formatting Examples
Formatting  Advanced functions Examples and Description
2017-02-10 12:48:29 +05:30
praveenmathamsetty
552793585a Added more description to Global Entitlement
Added  more description to Global Entitlement(s)
2017-02-07 16:43:29 +05:30
praveenmathamsetty
d55a16f19b Adding new AFs New-HVGlobalEntitlement, Remove-HVGlobalEntitlement, Get-HVGlobalEntitlement
New-HVGlobalEntitlement: Creates a Global Entitlement. ,
Remove-HVGlobalEntitlement: Deletes a Global Entitlement.,
Get-HVGlobalEntitlement: Gets Global Entitlement(s).
2017-02-07 16:40:29 +05:30
praveenmathamsetty
7a919a49b9 Adding new Advanced function Set-HVMachine
Using this AF, we can allow the machine to enter the maintanence mode
and as well as exit the maintanence mode
2017-02-03 17:39:47 +05:30
praveenmathamsetty
4b711cca91 Enabling cloning for Instant clone pool
If current image state is not ready, clonging of instant clone pools is
not supported.
2017-02-03 15:50:03 +05:30
praveenmathamsetty
769401af81 Fix to mixed mode bug
making few attributes like NamingPattern as optional.
2017-02-01 15:00:33 +05:30
praveenmathamsetty
fd13b0b16d Mixed mode changes
Use few parameters from json file and few parameters from command line
to create new pool or farm.
2017-01-27 14:32:21 +05:30
praveenmathamsetty
3f8d35a92a NetBiosName Fix
making netbiosname as optional.
2017-01-27 10:54:16 +05:30