Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question Unity says it is opening with administrator privileges, but nothing seems to be causing this

Discussion in 'Editor & General Support' started by AryaIsMe, May 19, 2023.

  1. AryaIsMe

    AryaIsMe

    Joined:
    May 11, 2020
    Posts:
    9
    Every time I open Unity, I get a pop-up saying that Unity is running as administrator and that this is a bad thing. I tried to fix this, but I cannot. Unity Hub does not ask for administrator privileges when opening. I was hoping for help on preventing Unity from opening as an administrator as I do not know what else to try.

    upload_2023-5-19_11-29-10.png
    There is a button which says to "Restart Unity as a standard user" which does nothing.

    upload_2023-5-19_11-29-42.png
    upload_2023-5-19_11-29-56.png
    Neither the Unity Editor nor the Unity Hub have "Run this program as an administrator" selected.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
    1. How do you open your projects? Via the hub or with a shortcut or something else?
    2. Running as admin won't break anything afaik, just don't use huge c# files from online since those would have admin perms if ran within Unity
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    It might be worth checking which processes are elevated in the task manager: upload_2023-5-19_13-5-46.png

    Also, you can change UAC settings to always tell you when something is trying to run elevated (don't forget to reboot after):
    upload_2023-5-19_13-6-33.png
     
  4. AryaIsMe

    AryaIsMe

    Joined:
    May 11, 2020
    Posts:
    9
    This was exactly the problem; changing this fixed my issue, thank you very much!
     
  5. Ahmad2671

    Ahmad2671

    Joined:
    Jun 1, 2023
    Posts:
    1
    I've had that problem before

    If uac Didn't work With You it

    Maybe the reason is in the windows

    First
    check your Account Type adminstrator or standard
     
  6. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    Changing the UAC settings to "Always notify" didn't work for me. My account type is administrator
     
  7. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    It says yes on the elevated column of unity.exe on my system. What does it mean and how can i fix this?
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    Does it still do that after a reboot? Does Unity Hub also say elevated? When you configured it to Always Notify, at what point does it ask for elevation?
     
  9. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    5,994
    You changed UAC settings and now hub no longer popups up that you're launching in admin?
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    I suspect what happened there is that when you change that settings, Windows asks for reboot. And when you reboot, anything you had running as admin is closed and next time it didn't start as admin anymore, which made the problem go away.
     
  11. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    5,994
    And if the editor is launched from an admin account?
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
  13. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    5,994
    Ok then this is strange it would launch as admin and not do anything if I press the button on the left (restart as standard user). What's the solution?
     
  14. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    Are you running Unity through the Hub? Is the hub running elevated? Can you try restarting the hub (and kill any of its elevated processes)?

    The button not working "restart as standard user" is a bug. I'll take a look at it. Can you tell me what lead you into running this? Did you just install the newer Unity version? Did you update the Unity Hub? Was this a fresh new machine or did you have hub/another Unity version already installed?
     
  15. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
  16. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    Yes it does. There are 6 Unity Hub.exes working on my task manager, 3 of them say yes, 3 of them no. Unity.exe says yes. I shared a ss of my task manager. I use Turkish windows but the far right column is Elevated. "Evet" means yes, "Hayır" means no. It never asks me to elevate
     

    Attached Files:

  17. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    Can you right click Unity Hub.exe on that list, and press something that resembles "Open file location" (I'm not sure what it's called in Turkish Windows), then right click on that executable, go to the Compatibility tab and show those settings?
    upload_2023-7-12_12-7-15.png
     
  18. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    Looking at your screenshot a second time, I notice that other system processes (like TextInputHost.exe) are elevated too. That is bizarre. Is there any way you could make it show all processes running on your system? I'm wondering if things like explorer.exe, RuntimeBroker.exe, backgroundtaskhost.exe or dwm.exe are also elevated.
     
  19. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    Sry for the inconvenience. Is there a way to switch windows to english after it's installed. I didn't choose to install windows in Turkish, the computer store i bought the computer installed it that way. Anyway i share the the ss
     

    Attached Files:

  20. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    upload_2023-7-12_22-37-41.png

    explorer.exe, RuntimeBroker.exe is elevated, dwm is not. backgroundtaskhost.exe is not listed
     
  21. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,920
    It should be in the Settings/Time & Language (IDK the Turkish phrase for it). Add English to the list and move it to the top if it isn't there and also you can choose it above so the Windows itself is in English. (BTW, this is a Windows 10 screenshot).
    Capture.PNG
     
    Last edited: Jul 12, 2023
  22. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    Thx. I use Win10 too
     
  23. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    The fact that things like explorer.exe or even your browser runs are admin is very concerning. Sure, Unity running as admin poises risk, but so does everything else running that way on your computer. I'd highly recommend trying to figure out what is causing it.

    I don't know why that is, I suspect some registry keys may have been messed with. What is the registry key "EnableLUA" under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" set to?
     
  24. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    How am i supposed to figure it out? What may be causing this?
     

    Attached Files:

  25. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    When you restart your computer, do you get any pop ups asking for elevation confirmation? Something like this:

    upload_2023-7-12_14-10-12.png
     
  26. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    no
     
  27. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    Honestly, I am not sure what to advice. Reading the internet, there seems to be a bunch of "windows optimizers/debloaters" that would do such a thing. There are also a bunch of registry hacks that would enable it. It's possible malware is involved too.

    If I were you, I'd be looking at reinstalling windows at this point. You are at risk running your computer like that.
     
  28. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    This is a brand new computer and windows was clean installed a week ago. I can think of one thing that can do this. A few days after i first opened my computer, i started to see the activate your windows watermark on the bottom right side of my screen. Then i looked for ways get rid of it and find this method shown in the video: <SNIP>

    Maybe this has something to do with the issue
     
    Last edited by a moderator: Jul 13, 2023
  29. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,920
    The only recommended way to get rid of the reminder is to buy/have a valid, proper and legal license and use it to activate your windows properly.
    Reminder: It is against the forum rules to post any kind of piracy methods or propagate their use. Since I do not speak Turkish I'm not 100% sure this is what happening in this video but I reported it and will leave the investigation to the moderators.
     
  30. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    No, that is your reccomendation which i didn't ask for. It is not your business to do police work on the forums on who used what kind of software. I gave this reply to Tautvydas-Zilys for the purpose of troubleshooting the issue i am having. So this is not a dialogue between you and me, you are just interluding. Also you don't know for certain that the video is about piracy. It only shows a way to remove the windows activation watermark, it doens't show how to crack windows. Again reporting the video was completely unneccesary and act of meddlesomeness which i clearly see you have a habit of. Please do not reply or interlude on any of my comments from now on
     
  31. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,920
    It's an open forum, I reply wherever I see fit. You're free to put me on the ignore list if my replies hurt your ego.
    It is the job of all of us, that's why it is explicitly encouraged to report posts which potentially break forum rules. It is your duty too.
    You probably should read the code of conduct of the forums. I urge you to check out the point 1e and the "We encourage" section.

    And here is the link to the Code of Conduct post: https://forum.unity.com/threads/unity-community-code-of-conduct.743180/
     
  32. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    If that's the case, reinstalling it is probably going to be even easier as you probably don't have too many things set up yet.

    I can't really comment on the other things that you mentioned but as I said, your computer is in a state of "messed up". This is beyond the scope of Unity and Unity was merely a messenger in this situation.

    I'd advice using Microsoft's media creation tool to do the reinstall, that way you can be sure that there are no modifications to it that you didn't do yourself: https://www.microsoft.com/en-us/software-download/windows10
     
  33. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    No, your replies didn't hurt my ego, my ego isn't that fragile and you give too much credit to yourself. You can't hurt my ego, don't worry about it. It is true however that i find your reply annoying because it was very unnecessary and also obstructive. They ask me questions to troubleshoot an issue and i honestly reply to those questions to find what the problem is , then you jump in out of nowhere and give me lectures about buying a Windows license as if you work for Microsoft. This topic isn't about that. I respect the forum rules and the people here but i'm not gonna report anyone or give them lectures about pirated software. Ppl who use them know the risks and have their own reasons to use them, it's not for me to judge them. I did nothing to encourage the use of pirated software, i just want to help myself and the community to find out what causes the bug which this topic in opened for
     
  34. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    Yeah tell me about it. I can't even open windows now. I tried entering this code: "net administrator /active:no" on cmd to deactivate the admin mode thinking that it might work. Now it asks for a password on windows login screen and i haven't set any password. I can't open the windows in safe mode either. F8 key doesn't work. I think i need to create a Windows 10 bootable usb and repair or reinstall windows hopefully without formatting the disk. As you say, this is not the subject of this forum. Thanks for your support so far anyway
     
  35. nebuchednezar

    nebuchednezar

    Joined:
    Feb 6, 2021
    Posts:
    31
    I clean installed the Windows, the warning is gone. Applications no longer run in elevated mode. I appreciate your help again. If you hadn't warned me, i could get into a serious trouble. I also apologize for my previous harsh comments
     
    Tautvydas-Zilys likes this.
  36. treviasxk

    treviasxk

    Joined:
    Apr 22, 2015
    Posts:
    33
    I already had this problem with modified windows, I'm using windows ghost spectre it already comes by default to open the programs as an administrator (UAC is disabled), in it you have to enable UAC with ghost tools. User Account Control Settings only works if you enable UAC in Ghost Tools because it is internally disabled.
     
    Last edited: Jul 15, 2023
  37. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
  38. MattanC

    MattanC

    Joined:
    Jan 22, 2022
    Posts:
    2
    Hello, I would like to add to this thread.
    I bought a new NVMe SSD disk driver today, and installed Windows 10 from this link using a USB driver. Mind you that this is a legitimate windows installation from Microsoft (I had bought this PC with a legitimate WIndows 8 version a few years ago, therefore Windows was licensed upon reinstalling).
    After installing this version I used Windows Updates to update my PC all the way to the newest WIndows 11 version.
    When the updates were finished, I downloaded Unity 2022.3.8f1 to run a project I am working on, and got this message:


    I will add and say that when trying to download anything to my C drive I get a similar message (for instance this is the message that pops up when I try downloading something from Google Chrome to anywhere on my C drive:



    The reason I am referencing this forum reply is that I reached this thread from another thread, saying the problem is fixed in here, and noticed you mentioned "EnableLUA".
    To try and fix the problem and be able to download items to my C drive, I followed this suggestion (to change EnableLUA to 0, solution 1 did not work for me, only solution 2) by an independent advisor which worked great! I was able to download items to my C drive with no problem.

    Now I am in a conundrum; on the one hand I can't open unity at all with EnableLUA set to 1 and on the other hand I am severely open to risks when placing EnableLUA to 0.

    Currently I chose leaving EnableLUA to 0 to ensure my PC's safety, but that means I can't download items to my C drive nor open any Unity projects... Also, my UAC level is set to 4 (max, enabled).

    How should I fix it? what can I do? Any suggestion on what may be the issue?

    Thanks ahead.
     
    Last edited: Sep 21, 2023
  39. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    It looks like the previous Windows installation was left as "owner" of those files, and thus Windows will not allow you to change them without taking ownership. You can take ownership of those files by right click on a given folder, going to properties, security, advanced and changing the owner of the file to yourself. However, I am not sure if it's okay to do on the whole drive recursively, changing permissions of the C:\Windows folder might compromise security. So you'd need to take ownership of folders individually.

    I definitely don't recommend keeping EnableLUA at 0.