Force a reboot after fixlet installation

Hello,

Through the REST API I'm installing a fixlet from a custom site, which works fine.  However, the system (Windows) does not reboot reboot immediately after.   What should I add to the xml below to force a reboot?

   <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
        <SourcedFixletAction>
            <SourceFixlet>
                <SiteID>2299639663</SiteID>
                <FixletID>252845</FixletID>
                <Action>Action1</Action>
            </SourceFixlet>
            <Target>
                <ComputerID>13234718</ComputerID>
            </Target>
            <Settings>
                <PreActionShowUI>false</PreActionShowUI>
                <HasTimeRange>false</HasTimeRange>
                <HasStartTime>false</HasStartTime>
                <HasEndTime>true</HasEndTime>
                <EndDateTimeLocalOffset>P2D</EndDateTimeLocalOffset>
                <HasDayOfWeekConstraint>false</HasDayOfWeekConstraint>
                <UseUTCTime>false</UseUTCTime>
                <ActiveUserRequirement>NoRequirement</ActiveUserRequirement>
                <ActiveUserType>AllUsers</ActiveUserType>
                <HasWhose>false</HasWhose>
                <PreActionCacheDownload>false</PreActionCacheDownload>
                <Reapply>false</Reapply>
                <HasReapplyLimit>true</HasReapplyLimit>
                <ReapplyLimit>3</ReapplyLimit>
                <HasReapplyInterval>false</HasReapplyInterval>
                <HasRetry>false</HasRetry>
                <HasTemporalDistribution>false</HasTemporalDistribution>
                <ContinueOnErrors>true</ContinueOnErrors>
                <PostActionBehavior Behavior="Restart"/>
                <IsOffer>false</IsOffer>
            </Settings>
        </SourcedFixletAction>
    </BES>

Thanks in advance

If there is a user logged on then that user can postpone the shutdown. The default generally also for a user to have to accept the restart is 24 hours so you will most likely need to force that time to a lower time as well.

Hi Alan,

 Thanks for the reply.   How would I go about forcing this?  Below is an updated xml that I tried via the REST API.  I should mention in this particular case it is ok to force a reboot as I am providing an interface to users to apply the patch themselves and choose whether to reboot.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
    <SourcedFixletAction>
        <SourceFixlet>
            <SiteID>2299639663</SiteID>
            <FixletID>252845</FixletID>
            <Action>Action1</Action>
        </SourceFixlet>
        <Target>
            <ComputerID>1452905</ComputerID>
        </Target>
        <Settings>
            <PreActionShowUI>false</PreActionShowUI>
            <HasTimeRange>false</HasTimeRange>
            <HasStartTime>false</HasStartTime>
            <HasEndTime>true</HasEndTime>
            <EndDateTimeLocalOffset>P2D</EndDateTimeLocalOffset>
            <HasDayOfWeekConstraint>false</HasDayOfWeekConstraint>
            <UseUTCTime>false</UseUTCTime>
            <ActiveUserRequirement>NoRequirement</ActiveUserRequirement>
            <ActiveUserType>AllUsers</ActiveUserType>
            <HasWhose>false</HasWhose>
            <PreActionCacheDownload>false</PreActionCacheDownload>
            <Reapply>false</Reapply>
            <HasReapplyLimit>true</HasReapplyLimit>
            <ReapplyLimit>3</ReapplyLimit>
            <HasReapplyInterval>false</HasReapplyInterval>
            <HasRetry>false</HasRetry>
            <HasTemporalDistribution>false</HasTemporalDistribution>
            <ContinueOnErrors>true</ContinueOnErrors>
            <PostActionBehavior Behavior="Restart">
                <AllowCancel>false</AllowCancel>
                <PostActionDeadlineBehavior>ForceToRun</PostActionDeadlineBehavior>
                <PostActionDeadlineInterval>PT1M</PostActionDeadlineInterval>
            </PostActionBehavior>
            <IsOffer>false</IsOffer>
        </Settings>
    </SourcedFixletAction>
</BES>

Regards

Hi again, just following up, how would I go about forcing the reboot?

Thanks,

John

The important section is the <PostActionBehavior> section.
The simplest way to determine the correct options to set is to export an Existing Action that does what you want it to do.

I exported a “Restart Needed” action and the <PostActionBehavior> section looks like this …

<PostActionBehavior Behavior="Restart"> ..... <AllowCancel>false</AllowCancel> ..... <PostActionDeadlineBehavior>RunAutomatically</PostActionDeadlineBehavior> ..... <PostActionDeadlineInterval>PT5M</PostActionDeadlineInterval> ..... <Title>Restart Now</Title> ..... <Text>Your system administrator is requesting that you restart your computer. Please save any unsaved work and then take this action to restart your computer.</Text> </PostActionBehavior>

The Restart is Forced (RunAutomatically) after 5 minutes (PT5M).