Iraj Posted February 7, 2022 Posted February 7, 2022 I am new to AutoIT & need to run application with different user credentials. I am using below script with RunAs() but the application is not invoking. #include <AutoItConstants.au3> $sUserName = $CMDLine[1] $sDomain = $CMDLine[2] $sPassword = $CMDLine[3] RunAs($sUserName, $sDomain, $sPassword, $RUN_LOGON_NOPROFILE,"ssms.exe") Kindly assist! Thank you
Iraj Posted February 7, 2022 Author Posted February 7, 2022 tried with full path as well. it didn't get invoked
Solution Iraj Posted February 7, 2022 Author Solution Posted February 7, 2022 Working. I used below Script : RunAs($sUserName, $sDomain, $sPassword, $RUN_LOGON_NOPROFILE,Run("C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe"))
Nine Posted February 7, 2022 Posted February 7, 2022 At first glance, the RunAs has failed, but the Run is successful. Not exactly a solution... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
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