antmar904 Posted February 13, 2018 Share Posted February 13, 2018 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? Link to comment Share on other sites More sharing options...
Developers Jos Posted February 13, 2018 Developers Share Posted February 13, 2018 Test for @UserName and @LogonDomain in the script? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
antmar904 Posted February 13, 2018 Author Share Posted February 13, 2018 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now