Uninstall PowerGUI
Log In or Register to download the BES file, and more.

1 Votes

Description

Uninstall the PowerGUI application.

Property Details

ID93
TitleUninstall PowerGUI
DomainBESC
CategoryUninstall
Download Size0
Sourcedanielheth@bigfix.me
Source ID<Unspecified>
Source Severity<Unspecified>
Source Release Date4/21/2011 12:00:00 AM
KeywordsUninstall PowerGUI application
Added by on 10/17/2012 9:31:55 AM
Last Modified by on 10/17/2012 9:37:44 AM
Counters 4711 Views / 5 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 9 fixlets and 4 analyses   * Results in a true/false
Show indented relevance
name of operating system as string contains "Win"
Used in 1 fixlet and 1 analsis   * Results in a true/false
Show indented relevance
exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\PowerGUI" of registry
Used in 1 fixlet   * Results in a true/false
Show indented relevance
( (exists x64 registry AND exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F27D4317-9EF7-46DF-BE4F-D8432C17A0EB}" of x64 registry AND exists value "UninstallString" whose (it as string != "") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F27D4317-9EF7-46DF-BE4F-D8432C17A0EB}" of x64 registry) ) OR ( (exists key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F27D4317-9EF7-46DF-BE4F-D8432C17A0EB}" of x32 registry AND exists value "UninstallString" whose (it as string != "") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F27D4317-9EF7-46DF-BE4F-D8432C17A0EB}" of x32 registry) )

Actions

Action 1 (default)

Action Link Click here to uninstall PowerGUI.
Script Type BigFix Action Script
parameter "app"="{{F27D4317-9EF7-46DF-BE4F-D8432C17A0EB}"
//first retrieve our uninstall command...
parameter "QuietUninstallString"="{if (exists x64 registry) AND (exists key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry) AND (exists value "QuietUninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry) then ((value "QuietUninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry as string)) else if (exists key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry) AND (exists value "QuietUninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry) then ((value "QuietUninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry as string)) else ""}"
parameter "UninstallString"="{if (exists x64 registry) AND (exists key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry) AND (exists value "UninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry) then ((value "UninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x64 registry as string)) else if (exists key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry) AND (exists value "UninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry) then ((value "UninstallString" whose (it as string != "") of key (concatenation of ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";(parameter "app" as string))) of x32 registry as string)) else ""}"
continue if {(parameter "UninstallString" != "") OR (parameter "QuietUninstallString" != "")}
if {parameter "QuietUninstallString" != ""}
    if {parameter "QuietUninstallString" as lowercase contains "msiexec.exe"}
        waithidden msiexec.exe /x {parameter "app" as string} /quiet
    else
        waithidden {parameter "QuietUninstallString"}
    endif
else
    if {parameter "UninstallString" != ""}
        if {parameter "UninstallString" as lowercase contains "msiexec.exe"}
            waithidden msiexec.exe /x {parameter "app" as string} /quiet
        else
            waithidden {parameter "UninstallString"} /quiet /norestart
        endif
    endif
endif
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!