Automatically Restart Stopped BES Clients Using TaskScheduler
0 Votes |
Description
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
538 | |
Automatically Restart Stopped BES Clients Using TaskScheduler | |
Support | |
0 | |
BigFix | |
<Unspecified> | |
<Unspecified> | |
BES Client service Note schedule | |
besSupport on 10/17/2012 1:16:07 PM | |
danielheth on 10/17/2012 1:16:07 PM | |
7912 Views / 21 Downloads | |
* Average over 0 ratings. ** Log In or Register to add your rating. |
Relevance
Used in 221 fixlets | * Results in a true/false |
(if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
version of client >= "5.1"
Used in 24 fixlets | * Results in a true/false |
((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 |
(it does not contain "Win9" AND it != "WinME") of name of operating system
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: |
Comments
|
|
Hi, can i have the same for Non windows.. Please |
|
|
is there relevance that can be used to check if the task exists and if it may have been removed? |