Skip to main content
Question

Vmware Horizon - Package

  • March 30, 2020
  • 2 replies
  • 20 views

Forum|alt.badge.img+10

So it should be a very basic thing creating the package. I have the installer for the vmware horizon (version 5.4.1)
But I am unable to add the server within the package, as user should not need to enter this manually. I have of course tried composer and also checked the /user/Preferences/com.vmware.horizon.plist but even I delete that file, the server link stays when restarting the application - so somewhere different it must be stored

Anyone has an idea ?

2 replies

Forum|alt.badge.img+4
  • Contributor
  • March 30, 2020

I use a Configuration Policy targeted at the Computer level.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>broker-history</key>
    <array>
        <string>https://{YOURDOMAIN}:443/broker/xml</string>
    </array>
    <key>defaultBroker</key>
    <string>https://{YOURDOMAIN}:443/broker/xml</string>
    <key>trustedServers</key>
    <array>
        <string>https://{YOURDOMAIN}:443/broker/xml</string>
    </array>
</dict>
</plist>


Forum|alt.badge.img+4
  • New Contributor
  • February 3, 2022

I use a Configuration Policy targeted at the Computer level.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>broker-history</key>
    <array>
        <string>https://{YOURDOMAIN}:443/broker/xml</string>
    </array>
    <key>defaultBroker</key>
    <string>https://{YOURDOMAIN}:443/broker/xml</string>
    <key>trustedServers</key>
    <array>
        <string>https://{YOURDOMAIN}:443/broker/xml</string>
    </array>
</dict>
</plist>


Ah-ha! I've been trying to get the required keys to make a minimum viable parameter list, and this is it! I wrote a bash script that uses the defaults command to write the values into the file post installation.