My apps need to be ran as administrator in order to create files

Dumitrache Vlad 0 Reputation points
2024-08-06T16:33:41.0466667+00:00

Hello, i just found out that i need to run every app as administrator in order to use them properly. I wanted to create a project in unity then i got an error that it cannot create a project folder. Ran it as an admin and it worked

Then i tried drawing something in photoshop but it wouldn't let me save it "Access is denied" Ran it as an admin and it worked. i want to enable my apps to use my files or create other files, how do i do this for all of them without running them as an administrator?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,460 questions
{count} votes

4 answers

Sort by: Most helpful
  1. S.Sengupta 18,611 Reputation points MVP
    2024-08-10T00:41:21.9433333+00:00

    If your UAC settings are too restrictive, they might be preventing apps from functioning correctly without administrative privileges.

    Open the User Account Control settings.

    Move the slider to the second position from the top, labeled Notify me only when apps try to make changes to my computer (default).

    Click OK to apply the changes.

    0 comments No comments

  2. MotoX80 33,296 Reputation points
    2024-08-10T12:22:42.6533333+00:00

    i got an error that it cannot create a project folder

    Modify the security permissions on that folder and grant your user account, or the Users group full control.

    There are many sites and videos on the net that show how to do that.

    https://www.bing.com/search?pglt=41&q=windows+set+file+permissions

    0 comments No comments

  3. RLWA32 44,931 Reputation points
    2024-08-10T14:36:59.93+00:00

    If you create files and folders in locations that ordinarily do not require administrative privileges then your app need not run with administrator privileges. For example your application would have full access to any file or folder that you created under your user profile. So the question is what file system locations are you writing to that require administrator privileges to allow access?

    0 comments No comments

  4. Karlie Weng 18,031 Reputation points Microsoft Vendor
    2024-08-12T07:42:25.8533333+00:00

    Hello,

    You can review your User Account Control (UAC) settings using the following link: https://learn.microsoft.com/en-us/windows/win32/secauthz/user-account-control

    To adjust the UAC settings via Command Prompt (run as Administrator), use the command below to disable UAC by setting the value to 0, or set it to 1 for the default configuration:

    reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.