-
PowerCLI Script to add vCenter Privileges for VMware Horizon 7
ref: https://docs.vmware.com/en/VMware-Horizon-7/7.12/horizon-installation/GUID-A878F876-B359-42FC-9124-A1E34BFB3319.html ref: https://code.vmware.com/docs/11794/cmdlet-reference/doc/Get-VIPrivilege.html ref: https://code.vmware.com/docs/11794/cmdlet-reference/doc/New-VIRole.html ref: https://code.vmware.com/docs/11794/cmdlet-reference/doc/Set-VIRole.html $VIRoleName = “View Manager Role” $VIRolePrivileges = @(` # Folder ‘Create Folder’, ‘Delete Folder’,` # Datastore ‘Allocate space’,` # Virtual Machine – Configuration ‘Add or remove device’, ‘Advanced configuration’, ‘Modify device settings’,` # Virtual Machine – Interaction ‘Power off’, ‘Power on’, ‘Reset’, ‘Suspend’, ‘Perform wipe or shrink operations’,` # Virtual Machine – Inventory ‘Create new’, ‘Create from existing’, ‘Remove’,` # Virtual Machine – Provisioning ‘Customize guest’, ‘Deploy template’, ‘Read customization specifications’, ‘Clone template’, ‘Clone Virtual Machine’,` # Resource ‘Assign virtual machine to resource pool’,` # Global ‘Act as vCenter Server’,` # Host ‘Advanced settings’,` # Profile-driven Storage ‘Profile-driven storage view’, ‘Profile-driven storage update’ ) try { # Get list of current Roles $VIRoles = Get-VIRole # Check if Role exists foreach($VIRole in $VIRoles) { if ($VIRole.Name -like $VIRoleName) { # Role exists exit } } # Assume the Role does not exist # Create the new Role New-VIRole -Name $VIRoleName # Add the Privileges to the Role foreach($VIRolePrivilege in $VIRolePrivileges) { Set-VIRole -Role $VIRoleName -AddPrivilege $VIRolePrivilege } } catch { …
-
Configuring Microsoft SQL Server for VMware Horizon View
Software being used: Microsoft SQL Server 2016 Microsoft SQL Server Management Studio 18.4 VMware Horizon 7.12.0 Configure Microsoft SQL Server After installing Microsoft SQL Server, a few things need to be configured: 1. Ensure TCP port 1433 is open on any firewall software running on the server. 2. Add a machine certificate to local machine…
-
Deploy VMware Unified Access Gateway with PowerShell
Each version of the Unified Access Gateway will also have PowerShell scripts available in a .zip file. For this post, I am using Unified Access Gateway 20.09. The components can be downloaded from https://my.vmware.com/web/vmware/downloads/info/slug/desktop_end_user_computing/vmware_unified_access_gateway/20_09. You will want to the appliance itself as well as the PowerShell scripts. For this post, I am going to use…
-
Update vCenter Server Appliance (VCSA)
I wanted to update vCenter Server Appliance update 1 (vCenter Appliance 6.7 U1 (6.7.0.20000)) to the most current patch level which at the time of this post is Update 3k. I navigated to VMware’s patch repository, https://my.vmware.com/group/vmware/patch#search, and selected VC and 6.7.0. I already have the appliance, so I downloaded the Appliance-Patch file as highlighted…
-
MSSQL SSL/TLS Certificate Chain Fix
I was configuring VMware App Volumes and ran into an issue where the installer reported a MS SQL security alert. Since I am trying to get this to work in a production-like environment, I did not want to just “Trust server certificate” and move along. I wanted this to be installed appropriately. A couple minutes…