Jump to content

Traskiz

Members
  • Posts

    17
  • Joined

  • Last visited

Traskiz's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Tried all of logon flag...0,1,2 and 4... As I said... I tied this: Please help... Maybe Windows dont let RunAs function? because of security or something ?
  2. main.exe: If IsAdmin() Then RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'EnableBITSMaxBandwidth','REG_DWORD',Number('1')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'MaxTransferRateOnSchedule','REG_DWORD',Number('100')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'MaxBandwidthValidFrom','REG_DWORD',Number('7')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'MaxBandwidthValidTo','REG_DWORD',Number('22')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'UseSystemMaximum','REG_DWORD',Number('1')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'MaxTransferRateOffSchedule','REG_DWORD',Number('400')) Else MsgBox(1,"Error", "Admin rights needed") EndIf And I get message box what I do wrong?
  3. I dont understand how to fix it. What i have to do? main.exe works when I log in with administrator, but I want to Elevate standart user to execute main.exe with run.exe, but that dont work...
  4. It's x64 OS. So I must compile to x64 autoit script?
  5. Hello, I have a problem, I cant run script as administrator in Windows 10: main.exe: RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'EnableBITSMaxBandwidth','REG_DWORD',Number('1')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'MaxTransferRateOnSchedule','REG_DWORD',Number('100')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'MaxBandwidthValidFrom','REG_DWORD',Number('7')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'MaxBandwidthValidTo','REG_DWORD',Number('22')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'UseSystemMaximum','REG_DWORD',Number('1')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\BITS', 'MaxTransferRateOffSchedule','REG_DWORD',Number('400')) run.exe: Global $sUserName = "administrator" Global $sPassword = "pass" Global $sDomain = "domain" RunAsWait($sUserName, $sDomain, $sPassword, 2, "main.exe", "", @TempDir) If I run "run.exe" it dont work... If I change main.exe to this: msgbox(1,"",@username) and it runs and shows administrator in message box... but it cant elevate main.exe with RegWrite() command... I tried using #RequireAdmin in first line of main.exe, but it not worked... UAC is set to "do not notify" This method of elevation worked on Windows 7 and Windows XP... Please help!
  6. Its starting, but without admin rights when using RunAs()... When starting cmd - run as administrator, then it works...
  7. Its starts notepad if I run permission.exe with command promp (Admin) it works... I think this is because permission.exe is not trusted or something?
  8. HELP! I cant run that script as administrator... with this script on windows 10...: Local $sUserName = "Username" Local $sPassword = "Password" Local $sDomain = "Domain" RunAs($sUserName, $sDomain, $sPassword, 2, "permissions.exe", "", @SW_SHOWMAXIMIZED) I can do that with installations(adobe reader, firefox, etc...).
  9. Hello, I want to change permissions in %programfiles%\test(one of application requires that): #include <Process.au3> _RunDos("cacls %programfiles%\test /t /e /g Everyone:f") When I use other folder I can achieve that: #include <Process.au3> _RunDos("cacls c:\test /t /e /g Everyone:f") Please help me, I need to do that in my company for many PC's(windows 10 64 bit). I will use RunAs() to elevate script...
  10. Hello, I can't copy file(3.cfg) running (1.exe) that runs file (2.exe) with admin rights that have filecopy() 1.exe: Global $sUserName = "Administrator" Global $sPassword = "" RunAs($sUserName, @ComputerName, $sPassword, 0, "2.exe", "", @SW_SHOWMAXIMIZED) 2.exe: FileCopy("3.cfg", "C:Program Files (x86)Mozilla Firefox", 1) 3.cfg is empty file all files is in C:test How to fix that? on windows xp it's working.. :/ I tried to write full path and everything...:| I think this is because of win 7 64 bit version...
  11. Oh! thank you very much! I tried that, but I forget to write this YOU SAVED ME Tried, Nothing. I dont use this...
  12. Tried that Please, could you try it yourself? I have no clue how to fix it... It looks like a bug.
  13. All files is in C:ini folder. Can it be Auto IT bug?
×
×
  • Create New...