#836 closed Feature Request (Rejected)
RegWrite - set registry key as another user
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
In our company user have no admin rights on their machines.
If we have to change some registry keys and we want to scrip it with autoit, we have to start the compiled exe as another user, or we write a second script which starts the first script as an admin.
Example:
RegWriteAs ("username", "domain", "password", "keyname" [,"valuename", "type", value] )
Another Idea would be "Priviledge Escalation", that means that we could run some parts of the code as another user.
Example:
StartRunCodeAs("username", "domain", "password")
Code...
StopRunCodeAs()
PS: AutoIT rulez!!
Attachments (0)
Change History (2)
comment:1 by , 17 years ago
| Version: | 3.3.0.0 |
|---|
comment:2 by , 17 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
You can re-run the same script with RunAs(). Or, if you are ambitious you can use DllCall() and the Windows API to impersonate another user. RunAs() is the simplest solution though.

Automatic ticket cleanup.