Commit Graph

156 Commits

Author SHA1 Message Date
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
2769f885f3 update readme file
update readme file
2017-04-21 21:17:27 +05:30
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
04985c7301 Changing module version from 1.0 --> 1.1
Update version 1.0 to  1.1 in VMware.HV.Helper
2017-02-01 17:38:36 +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
praveenmathamsetty
aae3d54c68 Remove overhead of passing -Confirm:$false as extra parameter
Now default behavior will be no pop-up will be shown for confirmation
2017-01-24 17:39:20 +05:30
vkg1215
a15c61cedf Following code convention. do not name variables having _
Renamed SCHEDULEDMAINTENANCE operation to SCHEDULED_MAINTENANCE  and
CANCELMAINTENANCE to CANCEL_MAINTENANCE
2017-01-23 15:07:36 +05:30
vkg1215
142e6361ef remove unused variable, and gave better name to farm operations
Renamed SCHEDULEDMAINTENANCE operation to SCHEDULED_MAINTENANCE  and
CANCELMAINTENANCE to CANCEL_MAINTENANCE
2017-01-23 15:07:36 +05:30
vkg1215
ce4dab7df6 Use Get-HVFarm instead of Get-HVFarmSummary
Use Get-HVFarm instead of Get-HVFarmSummary
2017-01-23 15:07:36 +05:30
vkg1215
42d33acb4c Code for Instant clone farm and farm maintenance
Code for Instant clone farm and farm maintenance
2017-01-23 15:07:36 +05:30
praveenmathamsetty
7ad1b05c29 Merge remote-tracking branch 'refs/remotes/vmware/master' 2017-01-20 19:29:40 +05:30
praveenmathamsetty
dd8906d65f Adding of new AFs New-HVEntitlement, Get-HVEntitlement and Remove-HVEntitlement
1) This represents a simple association between a single user/group and
a resource that they can be assigned to. Examples of associated
resources are Desktops, Applications,
GlobalEntitlements,GlobalApplicationEntitlements,or URLRedirection
Settings. Individual users/groups and resources may be associated with
multiple user entitlements.

2) Adding Get-Help changes for Pool

3) Configuring Clone Prep and Sys Prep script parameters to pool
2017-01-20 19:27:31 +05:30
Kyle Ruddy
6ede0e5aae Get-HVMachine Summary - Remove Informational Message
Get-HVMachine Summary - Remove informational nessage and associated
break
2017-01-18 13:45:56 -05:00
praveenmathamsetty
c3d82c2119 Update task info
Task information is not displaying properly, now fixed it.
2017-01-10 16:27:48 +05:30
praveenmathamsetty
a30d144974 Enhancements to examples, validation and netBiosName
1) Renamed Get-HVDesktopSpec to Get-HVPoolSpec.
2) Enhancements to examples
3) Enhancements to validation for farm and pool
4) ADDomainId handling for farm and pool
2017-01-09 21:11:54 +05:30
praveenmathamsetty
0c5518d439 All parameters should be configured through JSON
1. Create JSON files that will help in creation of new pools based on
existing pools configuration.
2. Configure all the pool attributes through JSON file.
3. Validation of the attributes passed in the JSON file.
2017-01-08 21:33:47 +05:30
praveenmathamsetty
608ca60d34 Text description for examples, wild card support to farm
1) Added text description for all the advanced function examples
2) Wild card support(only * character support) for farm (Get-HVFarm,
Get-HVFarmSummary)
2017-01-04 13:02:27 +05:30
praveenmathamsetty
804608f34a Adding features WhatIf, Cloning, Get-HVDesktopSpec and Get-HVInternalName
1) Enabling WhatIf functionality to Advanced Functions (All get-xxx AF
not required)
2) Cloning Added support for all AFs except instant clone pools(need to
fix a bug in server side for instant clone)
3) Get-HVDesktopSpec Converts DesktopInfo to DesktopSpec
4) Converts View API ids to human readbale names
2016-12-23 19:07:40 +05:30
praveenmathamsetty
df17793ede Fix for formatting Get-HVMachineSummary and empty search results.
Displays proper meesage for Get-HVMachine/Get-HVMAchineSummary, incase
of empty search results. Dispalying Agent sataus for
Get-HVMachineSummary result.
2016-12-19 13:07:44 +05:30
praveenmathamsetty
8b0750a94e Write-Error to Write-Host
In Find-HVMachine using Write-Host instead of Write-Error
2016-12-16 10:04:04 +05:30