Sign in to follow this  
Followers 0
RediXe

RunAsSet - No more?

7 posts in this topic

Is the RunAsSet no longer in use? I get an unknown function error when I try to use it, so I checked:

http://www.autoitscript.com/autoit3/docs/functions/

to make sure I was doing it correct and it isn't there. Am I just missing something obvious? I did some google searches and my syntax appears to be correct it is just that the function doesn't exist. It's been a good while since I used autoit for admin purposes so maybe I missed a change. If there is a work around please let me know. TIA!

RediXe

Share this post


Link to post
Share on other sites



Correct, the function: "RunAsSet" has been removed from the AutoIt functions!

Best of Luck, J.B.

Share this post


Link to post
Share on other sites

16th May 2008 - v3.2.12.0

AutoIt:

RunAsSet() has been removed. Use the new RunAs() and RunAsWait() functions instead. They have been enhanced with slightly better security (It is still not recommended to store important passwords in your scripts) and more functionality.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

(It is still not recommended to store important passwords in your scripts)

How do you suggest getting around this? Just curious.

Edited by RediXe

Share this post


Link to post
Share on other sites

How do you suggest getting around this? Just curious.

A simple gui, with a password field.

Share this post


Link to post
Share on other sites

Hello,

i think the stored password is a fine feature for admins, to adminsiter pc in a network im wondering that runasset is removed.

My workouround is a helper applikation that start the script with admin rigths.

Michael

Share this post


Link to post
Share on other sites

How do you suggest getting around this? Just curious.

Use _StringEncrypt() to encrypt the passwords with RC4, then store the decryption key in the registry or an ini file only accessible on your network.


Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt

Share this post


Link to post
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
Sign in to follow this  
Followers 0