View Single Post
07-15-2009   #19 (permalink) #
darkassain


Windows 7 Ult x64(x2), HomePrem x32(x4), Server 08 (+VM), 08 R2 (VM) , SuSe 11.2 (VM), XP 32 (VM)
In a ∞ Portal
 
 


Quote   Quote: Originally Posted by Orbital Shark View Post
Hi Shawn,

Is there a way to get Task Scheduler to run this every 30 days?

I've had a tinker with it but it coughs up an error, maybe because I have to set cmd.exe to run then slmgr.exe the the -rearm option.
hello Orbital
all you have to put is "slmgr.vbs -rearm" as this is what invokes the rearming process...
also its vbs (visual basic script) not a exe file...

open your text editor and copy and paste the code
Code:
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2009-07-15T17:55:13.8582314</Date>
    <Author>Darkassain</Author>
    <Description>This creates a Task that upon 30 days Rearms Windows 7 so that the activation popup wont show up for the maximum of 3 times essentially giving you 120 days.</Description>
  </RegistrationInfo>
  <Triggers>
    <CalendarTrigger>
      <StartBoundary>2009-07-15T17:50:11.8959436</StartBoundary>
      <EndBoundary>2010-03-01T16:59:00</EndBoundary>
      <Enabled>true</Enabled>
      <ScheduleByDay>
        <DaysInterval>30</DaysInterval>
      </ScheduleByDay>
    </CalendarTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <GroupId>S-1-5-32-544</GroupId>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
    <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>"C:\Windows\system32\slmgr.vbs"</Command>
      <Arguments>/rearm</Arguments>
      <WorkingDirectory>C:\Windows\System32\</WorkingDirectory>
    </Exec>
    <ShowMessage>
      <Title>Windows 7 Rearm Message</Title>
      <Body>Windows has now rearmed itself and will alow you to use it for 30 more days. Please save all your work and imediately restart your computer.</Body>
    </ShowMessage>
  </Actions>
</Task>
save it as a xml and import it into the task scheduler
if you dont know how then follow on how to import a task from a another tutorial that i made here...
Wireless Connection Workaround for Standby or Hibernation

once imported you might have to change running user account so that it matches your SID...

Last edited by darkassain; 07-19-2009 at 04:05 AM.. Reason: grammar error
My System SpecsSystem Spec