TROUBLESHOOTING: Uninstall BES Relay
0 Votes |
Description
This task will uninstall the BES Relay on the selected computers. |
Property Details
144 | |
TROUBLESHOOTING: Uninstall BES Relay | |
BES Server/Relay Setting | |
0 | |
IBM | |
<Unspecified> | |
<Unspecified> | |
7/27/2012 12:00:00 AM | |
BES Relay TABLE TBODY TROUBLESHOOTING | |
besSupport on 10/17/2012 1:13:30 PM | |
danielheth on 10/17/2012 1:13:30 PM | |
5718 Views / 18 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance

version of client >= "5.1"
Actions
Action 1
Action Link Click
here to uninstall the BES Relay.
Script Type
BigFix Action Script
if {name of operating system as lowercase starts with "win"}
if {exists relay service AND ((it < "8.0") of (if (version of client >= "8.0") then (version of relay service) else (version of regapp "besrelay.exe")))}
delete __appendfile
appendfile [InstallShield Silent]
appendfile Version=v7.00
appendfile File=Response File
appendfile [File Transfer]
appendfile OverwrittenReadOnly=NoToAll
move __appendfile "{pathname of folder "temp" of windows folder as string & "\uninst.iss"}"
if {exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Brand" whose (exists value "value" whose (it as string = "Trend") of it) of registry}
wait {value "UninstallString" of key whose (value "DisplayName" of it = "ESP Relay" and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry} /s --uninstallsilent -f1"{pathname of folder "temp" of windows folder as string & "\uninst.iss"}"
else
wait {value "UninstallString" of key whose (value "DisplayName" of it = "BigFix Enterprise Relay" and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry} /s --uninstallsilent -f1"{pathname of folder "temp" of windows folder as string & "\uninst.iss"}"
endif
delete "{pathname of folder "temp" of windows folder as string & "\uninst.iss"}"
else
if {exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Brand" whose (exists value "value" whose (it as string = "Trend") of it) of registry}
wait {preceding text of last "%00" of ((value "UninstallString" of key whose (value "DisplayName" of it = "Trend Micro Endpoint Security Platform Relay" and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry) as string) | ((value "UninstallString" of key whose (value "DisplayName" of it = "Trend Micro Endpoint Security Platform Relay" and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry) as string)} /qn
else
wait {preceding text of last "%00" of ((value "UninstallString" of key whose ((value "DisplayName" of it = "BigFix Enterprise Relay" OR value "DisplayName" of it = "Tivoli Endpoint Manager Relay") and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry) as string) | ((value "UninstallString" of key whose ((value "DisplayName" of it = "BigFix Enterprise Relay" OR value "DisplayName" of it = "Tivoli Endpoint Manager Relay") and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry) as string)} RESTARTBESCLIENT=0 /qn
endif
endif
else
if {(name of it as lowercase contains "sunos") of operating system}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile mail=
appendfile instance=overwrite
appendfile partial=nocheck
appendfile runlevel=nocheck
appendfile idepend=nocheck
appendfile space=ask
appendfile setuid=nocheck
appendfile conflict=nocheck
appendfile action=nocheck
appendfile basedir=default
delete "{(client folder of current site as string) & "/solaris_admin_file"}"
move "{(client folder of current site as string) & "/__appendfile"}" "{(client folder of current site as string) & "/solaris_admin_file"}"
wait /usr/sbin/pkgrm -a "{(client folder of current site as string) & "/solaris_admin_file"}" -n BESRelay
endif
if {(name of operating system starts with "Linux Red Hat Enterprise" AND not exists file "/etc/vmware-release" whose (exists line whose (it contains "VMware ESX Server") of it) AND ((exists match (regex "^i[0-9]86$") of it) of architecture of operating system OR architecture of operating system = "x86_64")) OR ((name of operating system contains "Linux SuSE") AND ((exists match (regex "^i[0-9]86$") of it OR it = "x86_64") of architecture of operating system))}
wait /bin/rpm -e BESRelay
endif
if {(name of operating system starts with "AIX" )}
wait /usr/sbin/installp -u BESRelay
endif
endif
// Handles the situations where the relay is installed, upgraded, or uninstalled. Causes the local agent to re-select its relay.
relay select
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
Social Media: |