Sign in to follow this  
Followers 0
doingthere

Authenticate Script to AD

3 posts in this topic

#1 ·  Posted (edited)

Hello All

I have recently starting using autoit and quite like it, so thanks to all the forum contributers and autoit community as I have learnt much from you all. I am trying to building the following

I want to build a simple menu that runs from the tray with my most frequently used applications in it. I have built the start of the tray menu with a few simple apps to get me going. I need to run most of these apps using my domain admins credentials and want to start the script with a login box where I can put my admin creds in and have that autneticate against AD. I think have the code ok, borrowing most of it from the AD UDF and stringing together bits and peices from my limited knowledge. It works as it should however, the script dosent seem to except the credentials I log in with, the script always runs with the user I am logged into my workstation with.

could someone please help me with working out whay I cant get the script to run with the creds I punch into the form.

Thanks in advance everyone

Simon

Launcher_V1.au3

Edited by doingthere

Share this post


Link to post
Share on other sites



anybody please

Share this post


Link to post
Share on other sites

First) Please wait at least 24 hours before you bump a topic.

Second) I din't think Shellexecute runs in the context of the current user. Please have a look at "RunAs":

RunAs ( "username", "domain", "password", logon_flag, "program" [, "workingdir" [, show_flag [, opt_flag ]]] )

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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