Deploy Java Installation and Updates via Windows GPO
#Java #GroupPolicy #ActiveDirectory
Full steps can be found at https://i12bretro.github.io/tutorials/0055.html
--------------------------------------------------------------------
Getting the Java .msi
--------------------------------------------------------------------
01. Download the offline Java installer https://java.com/en/download/manual.jsp
02. Start the downloaded Java installer, but don't go past the initial screen
03. Open Windows Explorer and navigate to %userprofile%\AppData\LocalLow\Oracle\Java\
04. Open the folder for the version of Java and copy the Java .msi to a different folder (ie Downloads, Desktop, etc)
05. Cancel the Java installation
--------------------------------------------------------------------
Creating Software Share
--------------------------------------------------------------------
01. Log into a domain controller
02. Create a folder somewhere to share for software distribution (ie c:\gpo_files)
03. Right click on the created folder ≫ Properties ≫ Sharing tab ≫ Advanced Sharing...
04. Click the Share this folder box
05. Give the share a name (ie gpo_files)
06. Click the Permissions button
07. Remove the Everyone group
08. Add Authenticated Users
09. Click OK on all open dialog boxes
10. Copy the Java .msi from earlier into the new shared folder
--------------------------------------------------------------------
Creating the GPO to Push Java
--------------------------------------------------------------------
01. Still logged into the domain controller, right click on the Start button ≫ Run ≫ type gpmc.msc ≫ Press Enter
02. Expand Forest: %domainname% ≫ Domains ≫ %domainname%
03. Right click on the domain name ≫ Create a GPO in this domain, and link it here...
04. Name the new GPO Software Distribution
05. Right click the Software Distribution GPO ≫ Edit...
06. In the Group Policy Management Editor expand Computer Configuration ≫ Policies ≫ Software Settings ≫ Software installation
07. Right click Software installation ≫ New ≫ Package...
08. When the file dialog appears, point it to the Java .msi using the share created earlier (ie \\domain_controller\gpo_files\javax64.msi)
09. Leave the deployment method as Assigned ≫ Click OK
10. Close out of all open Group Policy Management Editor windows
11. On client domain devices right click the Start button ≫ Run ≫ type gpupdate /force ≫ Press Enter
12. After the group policy update completes, reboot the device
13. During the boot process the Java from the software distribution GPO will be installed
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro