We all know how easy it is to deploy Java to all of our computers using PDQ Deploy. If you would like a refresher you can watch this video where we deploy Java 8.
Create a deployment.config File
A default deployment.properties file, located in a User’s profile is where the control panel and exception site list are usually managed. However, this is only on a per-user basis. This is not too helpful to a sys admin needing to manage multiple computers or maintain standard settings across their enterprise.
deployment.system.config.mandatory=trueThe first line (deployment.system.config) is where you’ll indicate where your customized deployment.properties file is located. In this example I specified a location on a file server. Note that I had to conform to standard URI conventions. This is why the colon has to be escaped and I use forward slashes instead of the standard Windows backslashes.
Now onto the bigger fish to fry: setting up properties. There are a great many options, settings and properties available, click here to see the different available properties.
Your file might look something like this:
#deployment.properties deployment.webjava.enabled=true deployment.security.level=HIGH deployment.security.level.locked deployment.user.security.exception.sites=//token/javacentral/exception.sites
You can see the last line that deployment.user.security.exception.sites is there with a path to the exception site file (Should you choose to use an Exception Site List). Also note that the deployment.security.level value needs to be either HIGH or VERY_HIGH as Java 8 no longer allows MEDIUM as a security level.
Put one URL per line to add a website to your list of allowed sites. That’s really all there is to that one.
Add a new File Copy step (new with the latest PDQ Deploy 6 Beta, otherwise use xcopy or robocopy in a Command step with your deployment.config file attached in additional files)