Jump to content

revert RunAs


Recommended Posts

hello all,

first, apologies: this is not an AutoIt-specific question. but I could not find ANY reference to the issue on MSDN or anywhere else, and I think that if any tool can suggest a solution, it's probably AutoIt.

so the issue is this: my compiled script is running as another account, with /netonly condition (RunAs logon_flag = 2 or 6). to sum-up, it means that access to local resources use the original user credentials, while access to network resources use the RunAs credentials.

now, when this script runs an external command, then that command inherits this condition.

I want to make the script run an external command, but force the external command back to the condition before the RunAs, so it will use the original user credentials for both local and network resources.

naturally, the compiled script does not know the credentials of the user running it, otherwise another RunAs will solve the issue.

any comments or leads are welcome. thanks,

Or

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...