Jump to content

herby

Members
  • Posts

    7
  • Joined

  • Last visited

herby's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. The problem was Windows UAC
  2. I did not find how to do it, do you have a documentation?
  3. Same result, cmd.exe open but not as administrator same for notepad++. I haven't had this problem on versions other than 22H2. Local $sTaskName = "MaTachePlanifieeTEST" Local $sTaskCommand = RunAs("administrateur",@ComputerName,"*****",0, "cmd.exe") ; Enregistre la tâche planifiée RunWait(@ComSpec & ' /c schtasks.exe /create /tn "' & $sTaskName & '" /tr "' & $sTaskCommand & '" /sc minute /mo 1', "", @SW_HIDE) If @error Then MsgBox($MB_ICONERROR, "Erreur", "Erreur lors de la création de la tâche planifiée.") Else MsgBox($MB_ICONINFORMATION, "Succès", "La tâche planifiée a été créée avec succès.") EndIf
  4. I can't modify password because i'm on domain account.
  5. Thank you, but I forgot to mention that the AutoIt script is executed on computers within a domain, and the administrator account is local to the computers. With this configuration, it no longer works.
  6. Hello, since the Windows 22h2 update, my Autoit script using the RunAs() function as an administrator no longer works. It works fine on previous versions of Windows. Do you know if this update has changed a security rule that prevents Autoit from performing a RunAs() as an administrator? I haven't found any information about it.
×
×
  • Create New...