Set vista to send a email and then reboot

Discussion in 'other software & services' started by WhiteWolfMac, Mar 20, 2009.

Thread Status:
Not open for further replies.
  1. WhiteWolfMac

    WhiteWolfMac Registered Member

    Joined:
    Mar 20, 2009
    Posts:
    1
    Hi all

    I am new to the forms, and before I opend a new Thread I looked for what i want to do.

    What I am tryin to do is set up a task that will send me an email to my bb, and then reboot. I will post the code for the task.


    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.2"

    xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
    <RegistrationInfo>
    <Date>2009-03-16T23:51:19.812253</Date>
    <Author>USER-PC\USER</Author>
    <Description>Will Rebot on days that I have to boot. When mom and dad

    are at work so it does not reboot on them</Description>
    </RegistrationInfo>
    <Triggers>
    <CalendarTrigger>
    <StartBoundary>2009-03-17T20:00:00Z</StartBoundary>
    <Enabled>true</Enabled>
    <ScheduleByWeek>
    <DaysOfWeek>
    <Sunday />
    <Monday />
    <Tuesday />
    <Wednesday />
    <Thursday />
    </DaysOfWeek>
    <WeeksInterval>1</WeeksInterval>
    </ScheduleByWeek>
    </CalendarTrigger>
    </Triggers>
    <Principals>
    <Principal id="Author">
    <UserId>USER-PC\USER</UserId>
    <LogonType>Password</LogonType>
    <RunLevel>HighestAvailable</RunLevel>
    </Principal>
    </Principals>
    <Settings>
    <IdleSettings>
    <Duration>PT10M</Duration>
    <WaitTimeout>PT1H</WaitTimeout>
    <StopOnIdleEnd>true</StopOnIdleEnd>
    <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
    </Settings>
    <Actions Context="Author">
    <SendEmail>
    <Server>smtp-server.carolina.rr.com</Server>
    <Subject>Computer Reboot</Subject>
    <To>email@vzw.blackberry.net</To>
    <From>otheremail@who.rr.com</From>
    <Body>Your computer is rebooting liked you asked</Body>
    <HeaderFields />
    </SendEmail>
    <ShowMessage>
    <Title>Reboot</Title>
    <Body>This computer will now do the 13:00 hrs reboot as set by the

    admin of this computer.</Body>
    </ShowMessage>
    <Exec>
    <Command>shutdown</Command>
    <Arguments>-r -t 0</Arguments>
    </Exec>
    </Actions>
    </Task>
     
  2. nexstar

    nexstar Registered Member

    Joined:
    Jun 23, 2004
    Posts:
    371
    Location:
    Southampton, UK
    Welcome to the forum :) . I came across a utility called DShutdown while on the hunt for something else recently. I've never used it but it looks pretty comprehensive and may well do what you are looking to do.

    Graham
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.