TROUBLESHOOTING: Uninstall BES Clients (Non-Standard Installation Directory)
Log In or Register to download the BES file, and more.

0 Votes

Description

If you want to remove the BES Clients from a computer, you can uninstall it using this task.

  • Uninstall the BES Client - this removes the BES Client application, but will leave behind configuration options, settings, and other traces of the application. This will allows you to reinstall the BES Client at a later time and keep the same computer ID and configuration.

    Note: You are not able to completely remove all traces of the BES Client because the client was not installed in a folder named "Enterprise Client" or "BES Client". This is a safety precaution to protect against erasing valuable data not associated with the BES Client. 

    Note: This task will not report relevant on the BES Server and BES Relays. To remove the BES Client on a BES Relay, you must first uninstall the BES Relay using the appropriate BES Relay uninstall task.

    Important Note: The BES Clients will not be able to report the final status of the action because they will be removed before the action completes. Instead, the BES Clients will stop responding and the action status will report back as 'Evaluating', 'Failed', or 'Running'. You will need to manually remove the computer from the BES Console after the BES Client is uninstalled.


  • Property Details

    ID562
    TitleTROUBLESHOOTING: Uninstall BES Clients (Non-Standard Installation Directory)
    CategoryTroubleshooting
    Download Size0
    SourceBigFix
    Source ID<Unspecified>
    Source SeverityLow
    Source Release Date5/12/2003 12:00:00 AM
    KeywordsBES Client Clients Note Relay
    Added by on 10/17/2012 1:16:12 PM
    Last Modified by on 10/17/2012 1:16:12 PM
    Counters 7413 Views / 7 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 223 fixlets   * Results in a true/false
    Show indented relevance
    (if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
    Used in 92 fixlets and 24 analyses   * Results in a true/false
    Show indented relevance
    version of client >= "5.1"
    Used in 24 fixlets   * Results in a true/false
    Show indented relevance
    ((if (version of client >= "8.0") then (windows of it) else (name of it starts with "Win")) AND platform id of it != 3) of operating system
    Used in 4 fixlets and 1 analsis   * Results in a true/false
    Show indented relevance
    not (exists relay service OR exists main gather service)
    Used in 1 fixlet   * Results in a true/false
    Show indented relevance
    exists value "UninstallString" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BF7023BC-319B-4FE1-B569-C854A19F81F8}" of registry
    Used in 1 fixlet   * Session Relevance
    Show indented relevance
    (it != "BES Client" AND it != "Enterprise Client") of name of parent folder of regapp "BESClient.exe"

    Actions

    Action 1

    Action Link Click here to uninstall the BES Client from selected computers below.
    Script Type BigFix Action Script
    // create a batch file to create the temp folder
    delete __appendfile
    delete tempdir.bat
    appendfile @echo off
    appendfile {if (exists variable "temp" of environment) then ("") else if (exists folder "temp" of windows folder) then ("") else ("mkdir " & pathname of windows folder as string & "\temp")}
    move __appendfile tempdir.bat
    wait "{pathname of client folder of site "BESSupport" & "\RunQuiet.exe"}" tempdir.bat
    delete tempdir.bat
    delete "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunQuiet.exe") else (pathname of folder "temp" of windows folder as string & "\RunQuiet.exe")}"
    delete "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\delClient.iss") else (pathname of folder "temp" of windows folder as string & "\delClient.iss")}"
    copy "{pathname of client folder of site "BESSupport" & "\RunQuiet.exe"}" "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunQuiet.exe") else (pathname of folder "temp" of windows folder as string & "\RunQuiet.exe")}"
    copy "{pathname of client folder of site "BESSupport" & "\delClient.iss"}" "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\delClient.iss") else (pathname of folder "temp" of windows folder as string & "\delClient.iss")}"
    // create a batch file to uninstall client and run BESRemove from a different directory
    appendfile @echo off
    appendfile cd {if (exists variable "temp" of environment) then (value of variable "temp" of environment as string) else (pathname of folder "temp" of windows folder as string)}
    appendfile {(if it ends with "%00" then preceding text of first "%00" of it else it) of (value "UninstallString" of key ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & "%7B" & "BF7023BC-319B-4FE1-B569-C854A19F81F8" & "%7D") of registry as string)} {if value "UninstallString" of key ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & "%7B" & "BF7023BC-319B-4FE1-B569-C854A19F81F8" & "%7D") of registry as string as lowercase starts with "msiexec" then "/qn" else ("/s --uninstallsilent " & (if version of regapp "BESClient.exe" < "5.1" then " /f1 %22" & (if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\delClient.iss") else (pathname of folder "temp" of windows folder as string & "\delClient.iss")) & "%22" else ""))}
    // move batch file to temp directory
    delete "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunBESRemove.bat") else (pathname of folder "temp" of windows folder as string & "\RunBESRemove.bat")}"
    copy "__appendfile" "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunBESRemove.bat") else (pathname of folder "temp" of windows folder as string & "\RunBESRemove.bat")}"
    // run batchfile
    run "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunQuiet.exe") else (pathname of folder "temp" of windows folder as string & "\RunQuiet.exe")}" "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunBESRemove.bat") else (pathname of folder "temp" of windows folder as string & "\RunBESRemove.bat")}"
    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!