title: scheduling task in windows 2008 with powershell
body: <p>i want to schedule task in windows 2008 r2 with powershell. i used          </p>
  
  <pre><code>   $username = "BUILTIN\Users"
     $TaskName = 'kakaka'
     $t=1
     $TaskRun = "$PSHome\powershell.exe  Start-Process -FilePath 'C:\v.exe' -ArgumentList '/a' -Verb runas -WindowStyle Normal"
     $start = (Get-Date).AddMinutes($t).ToString("HH:mm") 
     schtasks /create /ru $username /tn $Taskname /tr $TaskRun /sc once /st $start /f
  </code></pre>
  
  <p>on using above script i got an error "schtasks.exe : ERROR: The task XML contains a value which is incorrectly formatted or out of range."  same script worked fine on windows 7.</p>