Windows 10: How to set up elevated process to run at user logon?

Discus and support How to set up elevated process to run at user logon? in Windows 10 Support to solve the problem; Let me explain my dilemma. We have this custom-made executable that interfaces with our hardware in the shop that needs to run as soon as someone logs... Discussion in 'Windows 10 Support' started by ahmd, Mar 22, 2017.

  1. ahmd Win User

    How to set up elevated process to run at user logon?


    Let me explain my dilemma. We have this custom-made executable that interfaces with our hardware in the shop that needs to run as soon as someone logs in to this workstation. The way it was programmed, it needs to run elevated:


    How to set up elevated process to run at user logon? [​IMG]



    So I'm trying to automate the process of running it as soon as Windows user enters the password and logs in. (It causes problems when some employees forget to run this file upon login, which is easy to do.)There are two user accounts set up on this machine:Admin (Administrator) with a passwordDc (Standard user) with a passwordThe account in question that I need to automate the login for is Dc.So I went to Task Scheduler, ran it as Admin account and set up a task to run with Admin (highest) privileges:


    How to set up elevated process to run at user logon? [​IMG]


    do it at logon only, for the Dc account:


    How to set up elevated process to run at user logon? [​IMG]


    to run our elevated file:


    How to set up elevated process to run at user logon? [​IMG]


    with these conditions:


    How to set up elevated process to run at user logon? [​IMG]


    and these settings:


    How to set up elevated process to run at user logon? [​IMG]


    So I OKed the task and rebooted computer. I then logged in under Dc account, and nothing happened.I then started the Task Scheduler, and checked the task history. This is what it showed:



    How to set up elevated process to run at user logon? [​IMG]



    The question I have, is why does it say "because user Admin was not logged on" when I clearly indicated "Specific user: Dc" in the screenshot above?

    :)
     
  2. TedLeach Win User

    Adding new user to Windows 10 settings and start button not working

    Hi,

    thanks for the prompt reply,

    I am running the programs you suggested but i have to admit that i have been through this process at least three times before i posted the original query.

    the machine had a single user when running 8.1, after the upgrade to W10 the additional user was set up as a standard user but it had no rights to do anything. even when i elevated the user to Administrator it still couldn't seem to run anything. when i
    opened control panel it could't select small icons, it ended up each time with large icons.

    you suggested running the latest updates but i can't find anywhere how to access the update mechanism within windows 10.

    the suggestions you recommended were run previously on the following setups.

    1. Original user created the additional user using the User account icon, elevated to Administrator.

    2. Additional account deleted as it didn't work correctly.

    3. Additional account created via settings in the original account, elevated to Administrator.

    4. Additional account deleted as it didn't work correctly.

    5. Additional account created via CMD prompt and Net User "NAME" /ADD elevated to Administrator

    6.Additional account deleted as it didn't work correctly.

    as the original user account works correctly could this problem be a permissions issue with the new account when it is created?
     
    TedLeach, Mar 22, 2017
    #2
  3. How set a program to run at start up in Windows 10?

    The Startup folder is still there in Windows 10. To access it, press WinKey + R, and type
    shell:startup

    This opens the Startup folder, located at:

    C:\Users\{username}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

    in short:

    %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
     
    Ramesh Srinivasan, Mar 22, 2017
    #3
  4. f14tomcat Win User

    How to set up elevated process to run at user logon?

    Wild guess.....

    In order for the user DC to run that .exe with Admin privileges, it may be trying to run the .exe "As Administrator", similar to right clicking a .exe and choosing Run As Administrator. Since Administrator is not logged on, there are no inherited privileges yet. I'm probably not saying all this quite right, but it may be a timing issue getting the privileges from an internal account (Admin) that has not fully initialized.

    Like I said....wild guess.
     
    f14tomcat, Mar 22, 2017
    #4
  5. Samuria Win User
    First screenshot you have it set to admin and only run when user logged on ie admin tick box below it run wether logged in or not
     
    Samuria, Mar 22, 2017
    #5
  6. f14tomcat Win User
    Good catch. Maybe change the group in the first screenshot to Administrators
     
    f14tomcat, Mar 22, 2017
    #6
  7. ahmd Win User
    Guys, appreciate it.

    This Task Scheduler... I tell you. How do people use it?

    So if I change it on the first page to:



    How to set up elevated process to run at user logon? [​IMG]



    It boots up and gives me this error in the task history:
    But if I uncheck to "Do not store password", it then asked my password for Admin, which I provide to OK the task:



    How to set up elevated process to run at user logon? [​IMG]



    It then boots up and gives me this error:

    Well, one would assume that error 2147943726 is 41 times worse than error 2147943767. Corrent.

    *Smile
     
  8. f14tomcat Win User

    How to set up elevated process to run at user logon?

    @ahmd

    Since you're trying to make a program/app run automatically for any specific user when they log on, maybe a different approach. Instead of going the job schedule entry way, why not set an autorun entry in the start menu folder for each user you want, or for all users. Create a shortcut to the .exe in the same folder as the .exe, giving it Run as Administrator priviledges. Then follow the steps in Option #2 in this tutorial here on Tenforums.

    Add, Delete, Enable, or Disable Startup Items in Windows 10

    Give the tutorial a look and see if this may work for you.

    TC
     
    f14tomcat, Mar 22, 2017
    #8
  9. lx07 Win User
    A standard user can't run elevated task at log-on.

    You'll have to either make the user part of Administrators group or give them a button to press after they log-on.
     
  10. f14tomcat Win User
    That's part of his issue. They don't always remember to push the button.
     
    f14tomcat, Mar 22, 2017
    #10
  11. lx07 Win User
    Indeed - but the solution is the same. Either re-write the code so it doesn't require elevation or make them Administrator. Or dock their pay if they don't press the button - that would learn 'em.

    If a standard user could run anything at all through task scheduler it would defeat the point of having a standard user.

    There is no legitimate workaround for this.
     
  12. f14tomcat Win User
    That's why I suggested the Start Folder using Shawn's tut. It wouldn't be the user running it then, it would be Explorer. It's not uncommon for other vendors to place startup entries there in order to run with privilege. I'm only offering an alternative way of trying it to see if it fits his needs and his organizations policies, while maintaining control. A standard user (un-priviledged) would not be able to alter the entry in the Start Folder. And no button to push.

    These two lines from the tutorial tell me only an Admin could add/delete/modify these entries, and the standard user would have no input or choice....it would just run.


    NOTE: You must be signed in as an administrator to be able to do this step.
    A) In File Explorer, navigate to the step 4 below.
     
    f14tomcat, Mar 22, 2017
    #12
  13. lx07 Win User

    How to set up elevated process to run at user logon?

    Well, I just tested it to be sure (you could have tested it yourself before positing it as a solution I guess but never mind).

    It would have been cute but it doesn't actually work - it works on an administrator account and not on a standard account.

    So, no - there is no getting around Windows security that way. As per MS security you can't run elevated process under a standard account at startup and this method is no different.

    Even hacky things like this fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking require a Admin account to work.
     
  14. f14tomcat Win User
    Thanks for testing in your environment. Just to clarify.....I did NOT post this as a solution. Only a suggestion to try. The OP hasn't even had a chance to read these posts yet. It may give him an idea of how to proceed, thinking of alternatives, other approaches.

    That's why I suggested the Start Folder using Shawn's tut.

    I'm only offering an alternative way of trying it to see if it fits his needs


    Please give the OP the opportunity to respond before declaring it unworkable. Your first comment was totally unnecessary.
     
    f14tomcat, Mar 22, 2017
    #14
  15. lx07 Win User
    Don't get the hump. It was a good enough idea. I tried it as it as I was interested to see if you'd found a workaround. It just so happens the OS blocks it (as it should).
     
Thema:

How to set up elevated process to run at user logon?

Loading...
  1. How to set up elevated process to run at user logon? - Similar Threads - set elevated process

  2. multiple users set up

    in Windows 10 Customization
    multiple users set up: I was given this laptop 2 weeks after my aunt bought it because she could not understand the software. She managed to get her name and e-mail registered in it though somehow. I have changed it to my name and thought I had gotten the e-mail changed too. Well, every time I...
  3. How to show user logon screen with switch user by default?

    in Windows Hello & Lockscreen
    How to show user logon screen with switch user by default?: Hello, I've added another user to my pc but I want my user to be on by default and show this screen anytime a logon is required (with the Switch User button): (not my picture) [ATTACH] Thanks, Harry...
  4. Logon script runs at startup and not at user logon

    in Windows 10 Support
    Logon script runs at startup and not at user logon: I have 3 PCs, and my logon script in my Group Policy (C:\WINDOWS\System32\GroupPolicy\User\Scripts\Logon) runs as expected at user logon in all 3 PCs. However, in my fourth PC, the logon script runs at startup prior to a user logging onto this PC. I cannot seem to figure out...
  5. Get elevated process list in command line

    in AntiVirus, Firewalls and System Security
    Get elevated process list in command line: Is there a cmd or powershell command to know if a process (any process) is elevated or not? Or at least a list of running elevated processes with process id? I do know that you can get the list in task manager details page. There is a field called 'Elevated'. But I want...
  6. Processes running for each user.

    in Windows 10 Performance & Maintenance
    Processes running for each user.: Just about every process I have running is running for both the admin account and a standard user account, e.g.CCleaner64.exe user name Admin, CCleaner64.exe user name "my name" Does this mean I am doubling the amount of ram and CPU resources being used? Why are the Admin's...
  7. Force User Preparation on User Logon

    in User Accounts and Family Safety
    Force User Preparation on User Logon: Does anyone know how to force Windows 10 to perform its user preparation steps after a user already has a profile. I'm attempting to migrate a profile from Windows 7 to Windows 10, but the Start menu isn't working. I suspect this is because the OS never performs its...
  8. Processes with elevation terminated randomly?

    in Windows 10 Support
    Processes with elevation terminated randomly?: Lately, I've been experiencing a weird and new problem: Programs I run with elevation (i.e. as Administrator) have been randomly terminated. I'm not sure why this is happening. Is this a new Windows 10 security feature? Examples: I run Process Hacker with elevation to...
  9. See if Process is Running as Administrator (elevated) in Windows 10

    in Windows 10 Tutorials
    See if Process is Running as Administrator (elevated) in Windows 10: How to: See if Process is Running as Administrator (elevated) in Windows 10 [img] Information A process is an instance of a program that is being executed. Each process running in Windows is assigned a unique decimal number called the process ID, or PID. Some...
  10. See What User a Process is Running As in Windows 10

    in Windows 10 Tutorials
    See What User a Process is Running As in Windows 10: How to: See What User a Process is Running As in Windows 10 [img] Information A process is an instance of a program that is being executed. Each process running in Windows is assigned a unique decimal number called the process ID, or PID. Run as different user allows a...

Users found this page by searching for:

  1. how to set LogonTypes.Interactive for running process