Jump to content
antmar904

User privilege

Recommended Posts

antmar904

Hi

How would I check to see if a script is being run as a certain user name in a domain environment?  I have a script that should only be run with a number of AD accounts.  Is there a way to check to see if one of those accounts are being used to run my Autoit script?

Share this post


Link to post
Share on other sites
antmar904
5 minutes ago, Jos said:

Test for @UserName and @LogonDomain in the script?

Jos

Thanks @Jos that worked.  I assumed @username retries the logged on user only.

 

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

×