Automatically Restart Stopped BES Clients Using TaskScheduler
Log In or Register to download the BES file, and more.

0 Votes

Description

The BES Client service can be stopped on client machines for various reasons. To ensure the BES Client service is running across your environment, use the action below to use the Windows Task Scheduler and schedule a task that starts the BES Client service and sets the service start mode to "automatic" everyday (or on an arbitrary schedule).

Note: Do not set the "Reapply" behavior when taking this action or you may cause the BES Client to constantly schedule new tasks.

Note: Two tasks will be scheduled on client machines, the first at the time supplied as an action parameter and the second one minute later.  Avoid using the time 23:59, as the second task will run at 00:00 of the same day, which is 23 hours and 59 minutes earlier.  All other times will behave as expected.

Note:  The "schedule" service must be running for this task to be relevant.  On Windows NT machines, this service is not activated by default.

Property Details

ID538
TitleAutomatically Restart Stopped BES Clients Using TaskScheduler
CategorySupport
Download Size0
SourceBigFix
Source ID<Unspecified>
Source Severity<Unspecified>
KeywordsBES Client service Note schedule
Added by on 10/17/2012 1:16:07 PM
Last Modified by on 10/17/2012 1:16:07 PM
Counters 7912 Views / 21 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 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 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 5 fixlets   * Results in a true/false
Show indented relevance
(it does not contain "Win9" AND it != "WinME") of name of operating system
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists running service "schedule"

Actions

Action 1 (default)

Action Link Click here to schedule a BES Client restart task that runs every day. (You will be prompted for the schedule time).
Script Type BigFix Action Script
action parameter query "RunTime" with description "Please supply the schedule time. (Use 24 hour time in the format HH:MM)" with default ""
dos at {parameter "RunTime" of action} /every:M,T,W,Th,F,S,Su "{pathname of client folder of site "BESSupport" & "\changeservicestartmode.exe"}" BESClient auto
dos at {(first 5 of following text of position 17 of ((((first 17 of (now as string)) & parameter "RunTime" of action & (last 9 of (now as string))) as time + 1 * minute) as string))} /every:M,T,W,Th,F,S,Su cmd /c net start BESClient
Success Criteria

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

Action 2

Action Link Click here to schedule a BES Client restart task providing your own run schedule. (You will be prompted for the schedule time and interval).
Script Type BigFix Action Script
action parameter query "RunTime" with description "Please supply the schedule time. (Use 24 hour time in the format HH:MM)" with default ""
action parameter query "Interval" with description "Please specify the schedule interval as one or more days of the week (use the following abbreviations: M,T,W,Th,F,S,Su) or one or more days of the month (use the numbers 1 through 31). Use commas to separate multiple interval entries." with default ""
dos at {parameter "RunTime" of action} {if (parameter "Interval" of action equals "") then ("") else ("/every:" & parameter "Interval" of action)} "{pathname of client folder of site "BESSupport" & "\changeservicestartmode.exe"}" BESClient auto
dos at {(first 5 of following text of position 17 of ((((first 17 of (now as string)) & parameter "RunTime" of action & (last 9 of (now as string))) as time + 1 * minute) as string))} {if (parameter "Interval" of action equals "") then ("") else ("/every:" & parameter "Interval" of action)} cmd /c net start BESClient
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!
Naresh.jon -
Hi, can i have the same for Non windows.. Please
Don.olsson -
is there relevance that can be used to check if the task exists and if it may have been removed?