Jump to content

d4rkeagle6591

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by d4rkeagle6591

  1. Hi, I am attempting to create a scheduled task on multiple systems using a script. The task needs to run 2 minutes from the current time on the computer, regaurdless of if the time is correct or not. This will need to run on XP, Vista, 7 and Windows 8. I have figured out windows Vista, 7 and 8, but it seems like XP needs a bit more. Below is a script I have been testing, it will run through the script, and I have it make a string, which I then run, but does not make the task. I have it output to a MsgBox, and it seems like the string for the command is correct. Anyone have any ideas? $h = @HOUR $m = @MIN $m = $m + 5 If $m == 60 Then $m = "00" $h = $h + 1 ElseIf $m == 61 Then $m = "01" $h = $h + 1 ElseIf $m == 62 Then $m = "02" $h = $h + 1 ElseIf $m == 63 Then $m = "03" $h = $h + 1 ElseIf $m == 64 Then $m = "04" $h = $h + 1 ElseIf $m == 65 Then $m = "05" $h = $h + 1 Else $m = $m EndIf Run("SchTasks /Delete /TN /f 'DHCDScript'") $scTas = "schtasks /create /sc minute /mo 5 /tn DHCDScript /tr '" & $sFldr1 & "\clean2.exe' /st " & $h & ":" & $m & ":00 /p '" & $unpass & "'" ;/u '" & @ComputerName & "\" & @UserName & "'" Run($scTas)
  2. I am looking to see if there is a function that someone knows of that would allow me to get the hour and minutes of the systems clock, add 10 minutes and then output it in the format of HH:MM. I am looking to make a scheduled task that will run another program 10 minutes after I run this script.
  3. I have been trying to make a way for combofix to work better with AutoIT, as I would like to include it with a script I am writing. The one issue I have so far, is during the scan it will delete a regestry entry that I had the script create to start another script upon the reboot that has to occurr. I think it is within the first could of "stages" I am wondering how I could detect when the combofix window is open, and has the entirety of the text: Once it hits stage 48 or 49 I want it to make the regestry entry. Any ideas?
×
×
  • Create New...