Reset VMware View Display Settings Defaults

After reviewing how VMware view set the Display Settings at the client I found that it save them in the VMware ADAM directory. If you will like to reset them to the pool defaults you can use this script to reset them back to the pool defaults.

Copy this script to your View Connection Server.

[sourcecode language=”css”]

###########################################################
#  Script Name: reset_vdi_pool_display_defaults.ps1
#  Author: Carlos E. Vargas
#  Version: 1.0
#  Email: cvargas at cavarpe dot com
#  Purpose: Remove user custom display settings and reset
#           their settings to the defaults. VMware View
#           keep the last Display protocol setting
#           selected by the client. The Security Server
#           cant support PCoIP connections, RDP is the
#           only option.
###########################################################
# Requirements
# 1. PowerShell 2.0
# 2. PowerShell Active Directory Modules (W2K8 R2)
# 3. Copy this script to the main View Connection server
###########################################################
#  Instructions
#  1. Change the variable $viewserver
#  2. Change PowerShell Execution Settings
#     Ex. Set-ExecutionPolicy Unrestricted
#  3. Copy this script to the View Connetion Server
#  4. Schedule a Task to execute the script every 30 min
#     powershell.exe pathscriptname.ps1
#  5. Settings should be reset to the View Pool Default
###########################################################
# View Connection Server
$viewserver = "viewserver.domain.com"

#Importing ActiveDirectory Module
import-module ActiveDirectory

#Remote The settings and put default back
Get-ADObject -Filter ‘ObjectClass -eq "pae-Prop"' -SearchBase ‘OU=properties,DC=vdi,DC=vmware,DC=int' -server $viewserver | Remove-ADObject -Confirm:$False

[/sourcecode]

Subscribe For Latest Updates

Sign up for best of digital marketing, livestream and technology opinions on what matters to you.

Invalid email address
We promise not to spam you. You can unsubscribe at any time.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: