TROUBLESHOOTING: Reset the BES Client, Rename Computer, Reboot
Log In or Register to download the BES file, and more.

0 Votes

Description

Sometimes it is necessary for various troubleshooting reasons to "reset" the BES Client. Resetting the BES Client will make the computer "forget" all the information it knows, re-register with the BES Server, re-gather all the Fixlet sites, then re-report all its information.

You can use this task to reset the BES Clients on Windows NT based computers.

Note: Client machines may briefly display DOS windows during action execution.

Note: Because you are resetting the BES Client, it is likely that you will not receive a proper 'Fixed' status from your action. Instead you will know this action succeeded when the BES Client reports as a "separate" computer in the Computers list.

Important Note:
Avoid resetting the BES Client unless it is necessary because there will be negative side-effects (such as the BES Client showing up as a different computer in the Computers list).

Important Note: Do not set the "Reapply" behavior for this action and do not target computers by retrieved property values or by a list of computer names.  Doing so may cause the BES Client to constantly reset itself until the action is stopped or expired.


Property Details

ID3677
StatusAlpha - Code that was just developed
TitleTROUBLESHOOTING: Reset the BES Client, Rename Computer, Reboot
DomainBESC
CategoryTroubleshooting
Download Size0
SourceBigFix
Source ID<Unspecified>
Source SeverityLow
Source Release Date10/19/2004 12:00:00 AM
Added by on 12/9/2013 12:21:10 PM
Last Modified by on 12/9/2013 12:21:10 PM
Counters 5353 Views / 42 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 93 fixlets and 2 analyses   * Results in a true/false
Show indented relevance
version of client >= "6.0"
Used in 221 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 4 fixlets and 1 analsis   * Results in a true/false
Show indented relevance
not (exists relay service OR exists main gather service)
isWindows (Relevance 1172)
Used in 1152 fixlets and 538 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Windows XP or later (Relevance 2996958)
Used in 20 fixlets and 9 analyses   * Results in a true/false
Show indented relevance
version of operating system >= "5.1"

Actions

Action 1

Action Link Click here to reset the BES Client.
Script Type BigFix Action Script
action parameter query "newComputerName" with description "Please enter the new Computer Name:" and with default value ""

regdelete "[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions]" "ReportSequenceNumber"
regdelete "[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions]" "RegCount"
regdelete "[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions]" "ComputerID"

delete __appendfile

// This must be run in a BAT file because otherwise execution will stop because the BESClient is stopped.
appendfile @echo off
appendfile echo Your administrator is restarting the BES Client... Please Wait...
appendfile net stop BESClient
appendfile wmic computersystem where caption='{computer name as string}' call rename '{parameter "newComputerName" as string}'
//wait 10 seconds
appendfile choice /C:TY /D:T /T:15 > NUL
appendfile shutdown /r /t 5
//appendfile net start BESClient

delete clientRestart.bat
copy __appendfile clientRestart.bat
run clientRestart.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!