VMware Horizon Community
N74jrw
Enthusiast
Enthusiast
Jump to solution

Username Remains

Hi,

Is there a way to get rid of the last user's username from the connection dialog? The View client is installed on public machines here and each time a user logs in, they have to delete the previous user's name. It's annoying. There's a registry setting to do this in Windows, but I can't find anything in the Mac preferences.

Thanks

1 Solution

Accepted Solutions
yuleyl
VMware Employee
VMware Employee
Jump to solution

You can do it with command line with latest Mac client 3.2 build.

Run below commands as current user viaTerminal.app:

defaults delete com.vmware.horizon "https://<server>:<port>/broker/xmlusername"

defaults write com.vmware.horizon "$(defaults read com.vmware.horizon "https://<server>:<port>/broker/xml")" -dict "username" ""

Thanks.

View solution in original post

0 Kudos
6 Replies
yuleyl
VMware Employee
VMware Employee
Jump to solution

You can do it with command line with latest Mac client 3.2 build.

Run below commands as current user viaTerminal.app:

defaults delete com.vmware.horizon "https://<server>:<port>/broker/xmlusername"

defaults write com.vmware.horizon "$(defaults read com.vmware.horizon "https://<server>:<port>/broker/xml")" -dict "username" ""

Thanks.

0 Kudos
N74jrw
Enthusiast
Enthusiast
Jump to solution

This is great stuff! Where did you find it? What port should I use? I have all of the defaults running.

Thanks

0 Kudos
yuleyl
VMware Employee
VMware Employee
Jump to solution

The preference file is saved in /Users/<username>/Library/Preferences/com.vmware.horizon.plist

The default port for the View Connection Server is 443.

0 Kudos
hansiecox
Contributor
Contributor
Jump to solution

Is there anyway to get rid of the last username in when running the client in windows?

Thanks

0 Kudos
yuleyl
VMware Employee
VMware Employee
Jump to solution

For latest version of Windows client, the last user info will be saved in "%AppData%\VMware\VMware Horizon View Client\prefs.txt", you can write a script to remove mruUsername="xxx" and mruDomain="xxx" from this file.

hansiecox
Contributor
Contributor
Jump to solution

Thanks.  I was looking for this for ages.

0 Kudos