![]() ![]() The code snippet below enumerates all of the running processes with WMI that are running with a file in a path matching “Program Files\Java“. Next, find all of the running Java processes. $VersionsToKeep = 8 Update 261') Find and Stop all Running Processes You can find the exact text to use by looking at Programs and Features in the Control Panel. $RegUninstallPaths = Define Versions to Keepīecause you probably want to keep some old versions of Java out there, create an array with each of the versions you’d like to keep. The below code snippet provides both the 32 and 64-bit registry paths. Define the Registry Pathsīecause Java instances can hide in two places in the registry, first define each of the parent registry keys. ![]() This PowerShell script will contain everything you need to clean up previous Java versions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |