Windows 10: Program not being invoked with administrator permission

Discus and support Program not being invoked with administrator permission in AntiVirus, Firewalls and System Security to solve the problem; I wrote a dotNet actually C# program I'll call it the invoker to invoke a certain application I'll call it the target application with a specified... Discussion in 'AntiVirus, Firewalls and System Security' started by Ragnarokkr, Feb 1, 2021.

  1. Program not being invoked with administrator permission


    I wrote a dotNet actually C# program I'll call it the invoker to invoke a certain application I'll call it the target application with a specified user.

    Generally, the invoker decrypts a file and gets the specified username, domain and password, then it fills the information into a ProcessStartInfo, and start a process with it, like the following code


    var psi = new ProcessStartInfo {

    UseShellExecute = false,

    LoadUserProfile = true,

    FileName = _fileName,

    Domain = _domain,

    UserName = _userName,

    Password = _passWord.ToSecureString,

    WorkingDirectory = _workingDirectory

    };

    Process.Startpsi;


    There's a strange behavior: After a rebootor a fresh system startup, The target application invoked by the invoker won't have administrator priviledge. But if I right click on any application actually any executable and "Start with administrator priviledge" using the same user info stored in the Invoker Done by manually input the same username@domain and password in the pop up window asking for credential once, the invoker can call the target application with administrator priviledge successfully.

    I wonder why this happens. What does `LoadUserProfile` mean? Does it means the `UserProfile` contains some default authority information and is changed after "Start with administrator priviledge"? Or it's totally irrelevant with the strange behavior I described. How can I solve this problem?

    :)
     
    Ragnarokkr, Feb 1, 2021
    #1
  2. Marby Rey Win User

    no administrator permission

    Hi Ryan,

    Let us assist you to have an Administrator permission. To start, follow the steps below to enable the Windows Super Administrator Account.

    • Type CMD on the search box.
    • CMD will appear at top.
    • Right click on it, then choose Run as administrator.
    • Type this command & hit Enter: Net user administrator /active:yes.
    • After you enable the Super Administrator account, log out on your existing account then log into Super Administrator account.
    • On the Super Administrator account, you can now create an Administrator account or give Administrator permission on the existing account.

    After you created an Administrator account, we suggest that you disable the Super Administrator account by following the same steps and using this command:
    Net user administrator /active:no.

    Let us know how it goes.
     
    Marby Rey, Feb 1, 2021
    #2
  3. Xylee Del Win User
    How to always allow administrator permissions for a specific application

    Hi Lyon,

    Windows 10 gives users the ability to customize how they run applications. We suggest that you follow the steps below on how to grant administrator permission to a specific application:

    • Click the Windows icon on your Windows 10 screen that will open the list of applications. Right click on the specific application that you wish to have an admin permission, click the
      More and click Open file location.
    • A new window will open to the location of the program. Right-click on the program and click
      Properties from the pop-up menu.
    • In the Properties window, click the Shortcut tab and then click
      Advanced.
    • In the Advanced Properties window, check the box next to
      Run as administrator
      and click OK.
    • The program will now open in administrator mode when you click the shortcut from the Start menu. Repeat the steps above for other desired applications.

    Let us know if you need further assistance.
     
    Xylee Del, Feb 1, 2021
    #3
  4. Program not being invoked with administrator permission

    administrator permissions needed

    Hello,

    Thank you for posting your query on Microsoft Community.

    As per description, you are getting error message "THIS ACTION REQUIRES ADMINISTRATOR PERMISSIONS" using quick books.

    I would suggest you to follow the method given below and check if that helps.

    Method 1:

    Try to run the application as an “Administrator” and check. Follow the steps mentioned below.

    1. Right click the shortcut of the application or the main application.

    2. Select
    properties.

    3. Select
    compatibility tab and select "Run this program as an administrator."

    If issue still persists try method 2,

    Method 2:

    User Account Control (UAC) notifies you before changes are made to your computer that require administrator-level permission. The default UAC setting notifies you when programs try to make changes to your computer, but you can change how often
    UAC notifies you. It might be that you have your computer to “Always notify”.

    Always Notify:

    You'll be notified before programs make changes to your computer or to
    Windows settings that require administrator permissions. This is the most secure setting.

    To change the settings in User Account Control follow the steps mentioned below.

    • Press Windows key + X key.
    • Select Control Panel.
    • Select User accounts.
    • then click Change User Account Control settings.
    • If prompted by UAC, click/tap on Yes.
    • Move the slider up or down to the setting for how you want to be notified by UAC, and click/tap on
      OK.
    Hope the information helps. Please let us know if the issue persist and we will be happy to assist you further.
     
    Ashish Sondhi, Feb 1, 2021
    #4
Thema:

Program not being invoked with administrator permission

Loading...
  1. Program not being invoked with administrator permission - Similar Threads - Program being invoked

  2. Invoking Microsoft Photos from a program

    in Windows 10 Software and Apps
    Invoking Microsoft Photos from a program: I have a program that invokes executes or starts Office 2010 Picture Manager when it wants to display an image in detail. I want to update the program to use Microsoft Photos. The Photos program resides at C:\Program...
  3. Administrator permissions

    in Windows 10 Gaming
    Administrator permissions: Many functions with Windows 11 it states "you need administrator permission" to perform. I'm the sole administrator and appear to have all the permission I need. It's and extra step I don't need...
  4. Administrator permissions.

    in Windows 10 Customization
    Administrator permissions.: I have tried to give AP and when I open control panel to look for computer management, system tools, I don't see the local users and groups. https://answers.microsoft.com/en-us/windows/forum/all/administrator-permissions/ca21bb17-e8e2-48a0-afc0-e0af3cfea297
  5. Administrative permission

    in AntiVirus, Firewalls and System Security
    Administrative permission: I am trying to delete an old security program, Mcafee, on my laptop and I get the message that I need administrative permission. I am the only user on the laptop. How do I get rid of this unwanted software?...
  6. Administrative Permission

    in Windows 10 Network and Sharing
    Administrative Permission: I lost all administrative rights on my windows 10 PC; cant save a file, uninstall, modify or edit some documents. I have tried the options of gaining my permissions through cmd but all options not working still...please help out, can't literally use my PC anymore......
  7. Administrator Permission

    in AntiVirus, Firewalls and System Security
    Administrator Permission: How do I get administrator permission? https://answers.microsoft.com/en-us/windows/forum/all/administrator-permission/26f6efa3-b3bf-45af-8752-c2d1fbfa1a7a"
  8. Administrator Permission...

    in AntiVirus, Firewalls and System Security
    Administrator Permission...: Why do I need administrator permission if I'm the administrator? Tried to move some files and I needed to get administrator permission. Is there a way to make it so this no longer pops up? It's annoying and senseless. I've searched the internet and there is not info about...
  9. Administrative permission

    in Windows 10 Installation and Upgrade
    Administrative permission: I'm trying to install an Embrpodery program application that has several components. Three of the four components seem to install okay but when I get to the fourth I get a "installer has insufficient priveleges to access this directory. Log on as administrator or contact your...
  10. Permission for Administrators

    in AntiVirus, Firewalls and System Security
    Permission for Administrators: How to remove administrator restrictions on Windows pc https://answers.microsoft.com/en-us/windows/forum/all/permission-for-administrators/a0802907-759c-416b-b26a-cbfd5e05c232"