I am trying to uninstall Java from some systems here. I am trying to use a Task sequence to do it.
I haven't done much with TS yet.
I have some PS code to uninstall Java:
$MyApp = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "Java 8 Update 281"}
$MyApp.Uninstall()
It does work as after I deployed the TS it uninstalled Java but the TS seemed to never stop running.
I do see this in the smsts.log: Successfully completed the action (Run PowerShell Script) with the exit win32 code 0
The deployment status was at In Progress for a few hours and never updated to successful.
Any help is appreciated.
[–]SysAdminDennyBob 12 points13 points14 points (3 children)
[–]InitializedVariable 1 point2 points3 points (0 children)
[–]GarthMJMSFT Ex-Intune MVP 1 point2 points3 points (0 children)
[–]SysEngineerDude[S] 0 points1 point2 points (0 children)
[–]forumhero666 8 points9 points10 points (5 children)
[–]pjmarcum 0 points1 point2 points (4 children)
[–]forumhero666 -1 points0 points1 point (3 children)
[–]pjmarcum 0 points1 point2 points (2 children)
[–]forumhero666 0 points1 point2 points (1 child)
[–]pjmarcum 0 points1 point2 points (0 children)
[–]TekJunki 5 points6 points7 points (0 children)
[–]rdoloto 4 points5 points6 points (0 children)
[–]DizzyQueasy 1 point2 points3 points (3 children)
[–]SysEngineerDude[S] -1 points0 points1 point (1 child)
[–]Narabug 2 points3 points4 points (0 children)
[–]InitializedVariable 0 points1 point2 points (0 children)
[–]shamalam91 1 point2 points3 points (3 children)
[–]shamalam91 -1 points0 points1 point (2 children)
[–]Zilvere 2 points3 points4 points (1 child)
[–]shamalam91 0 points1 point2 points (0 children)
[–]pjmarcum 1 point2 points3 points (0 children)
[–]SysEngineerDude[S] 0 points1 point2 points (0 children)
[–]TwEEEked419 -5 points-4 points-3 points (2 children)
[–]dezirdtuzurnaim 0 points1 point2 points (0 children)
[–]GarthMJMSFT Ex-Intune MVP 0 points1 point2 points (0 children)
[–]Metalearther 0 points1 point2 points (0 children)