Eric50325 Posted December 13, 2021 Posted December 13, 2021 We have a program installed on a stand-alone server and when it reboots, someone needs to login and actually run as administrator and login to the program for it to work. The current user has local admin rights but the program still needs to "Run As Administrator" so it doesn't require a U/N or PW to be entered. I'm new to scripting and never really had to do anything like this in the past but I was wondering how would I go about: *Automatically starting the program and running as admin at startup *Clicking OK through the UAC *typing in the program password and hitting ok?
spudw2k Posted December 14, 2021 Posted December 14, 2021 Unfortunately, I think this may qualify as one of the topics that are against the Forum Rules (rule #1 - Bypassing of security measures - log-in and security dialogs, CAPTCHAs, anti-bot agents, software activation, etc.) A moderator can correct me or clarify what "bypassing" means, but I suspect it may be synonymous with "automating." Is the program in-house developed or specialized? Can you share the name of the program? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
Docfxit Posted December 14, 2021 Posted December 14, 2021 You don't mention what OS you are running. This will work with Windows 7. It might work with Windows 10. This will automatically signon to the OS. Step 1 – Open run window (WINDOW + R) and type netplwiz and hit the Enter key. This will open the user accounts window. Step 2 – You will see the list of account. Select the account you want to enable auto-login and then uncheck the box before “Users must enter a username and password to use this computer” and click OK. See the below screenshot: Step 3 – Now this will prompt username and password of the account you’d like to automatically log in. Click OK to apply changes. All done. Reboot your Window system and check if the account is auto logged in on start. To auto run a program when the PC starts up you need to create a call to the program running as admin. Create an AutoIt script with this code: #RequireAdmin Call("Test1") Compile the script. Do a right click on the Test1.exe file and select Create a shortcut. Move the shortcut to the folder: C:\Users\UserName\Start Menu\Programs\Startup Replace "UserName" with the user that logs in. All done.
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