Community
    • Login

    Still stuck in Administrator mode

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    18 Posts 9 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Martin OlssonM
      Martin Olsson @xomx
      last edited by Martin Olsson

      @xomx
      Thanks. Unfortunatley I have zero hope that the IT dept will make any changes.

      But… Since my problem is that N++ is starting itself in Admin-mode (the “dangerous” mode), wouldn’t it be possible (and quite simple?) for the developers to add an option to force N++ to never enter Admin-mode.

      Problem solved for people like me, whom don’t want N++ to be running in Admin mode.

      There exist an option -noPlugin to Launch N++ without loading any plugin.
      My suggestion would then be to add the new option -noAdmin.

      -noAdmin :
      Prevent Notepad++ from running in Administrator mode (do not elevate privileges). If launched from the Administrator account itself, there’s no ordinary user to fall back on, so Notepad++ will bail with a warning message.

      CoisesC rdipardoR xomxX 3 Replies Last reply Reply Quote 1
      • CoisesC
        Coises @Martin Olsson
        last edited by

        @Martin-Olsson said in Still stuck in Administrator mode:

        wouldn’t it be possible (and quite simple?) for the developers to add an option to force N++ to never enter Admin-mode.

        I suspect it would not be possible. Windows (most likely at the behest of BeyondTrust) is launching in Admin mode. It’s already happened by the time Notepad++ gets control.

        Have you tried any of the following:

        1. Using a portable copy rather than an installed copy?

        2. Installing somewhere other than Program Files?

        3. Installing the 32-bit version?

        I’m not saying any of those will necessarily work, but if they are possible under the controls imposed on your system, they might avoid whatever is triggering BeyondTrust to think it should elevate privileges.

        1 Reply Last reply Reply Quote 0
        • rdipardoR
          rdipardo @Martin Olsson
          last edited by

          I would not be overly worried about the purported dangers of running N++ as admin. That BeyondTrust crapware probably logs every application start, so there’s not much you can do in “the dangerous mode” without detection — or which can’t be reversed with a system backup. Every current edition of Windows Defender supports controlled folder access anyway.

          Martin OlssonM 1 Reply Last reply Reply Quote 2
          • Martin OlssonM
            Martin Olsson @rdipardo
            last edited by

            @rdipardo
            The problem has less to do with security.
            The problem is the annoying user experience.
            When N++ is (unintentionally stuck) in Admin mode, lots of features are lost/restricted. :-( Like you can’t drag-n-drop files, remote editing is not allowed, the N++ window becomes an annoying sticky window in desktop managers, etc.

            Oh well, I have now created a Feature request:
            https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14310

            1 Reply Last reply Reply Quote 1
            • Alan KilbornA
              Alan Kilborn
              last edited by

              For me it was more of an annoyance than a “danger”. Since my Explorer was running non-admin, I couldn’t drag and drop from there into Notepad++.

              1 Reply Last reply Reply Quote 1
              • xomxX
                xomx @Martin Olsson
                last edited by

                @Martin-Olsson said in Still stuck in Administrator mode:

                wouldn’t it be possible (and quite simple?) for the developers to add an option to force N++ to never enter Admin-mode.

                Do not forget that your PC is not in a normal state. I mean - even if someone implements that “-noAdmin” feature (and the project maintainer accepts that), it is more than possible that it will not work on your machine!

                Anyway, at normal circumstances such feature is doable, yes. You can withdraw the admin privileges from the already running app by the AdjustTokenPrivileges WINAPI. Or you can use the CreateRestrictedToken WINAPI and restart the app without that privilege. But, as I said, all of this could be impossible on your machine in its current state…

                Martin OlssonM 1 Reply Last reply Reply Quote 3
                • Martin OlssonM
                  Martin Olsson @xomx
                  last edited by

                  @xomx
                  I know.
                  I’m just hoping that someone will try to add the option.

                  If it works - great! Me and a lot of others now have a workaround for our “Stuck in admin” issue.
                  If it don’t work for me, but it works for PCs in normal state - then the work is not wasted. Paranoid people have an option to keep N++ from getting too high privileges.

                  1 Reply Last reply Reply Quote 0
                  • L
                    LordKenmou
                    last edited by

                    I have the same issue on a corporate Windows 10 managed by “BeyondTrust Privilege Management”, and I found an bit lazy solution.
                    Somehow the npp starts as non-admin mode if I run npp as administrator from the right click context menu of notepad++exe or its shortcut. It does not work if you enable “run as administrator” checkbox on a property of notepad++exe or its shortcut.

                    1 Reply Last reply Reply Quote 0
                    • J
                      JohnWren @Martin Olsson
                      last edited by

                      @Martin-Olsson
                      Hi!
                      Suddenly I have had the same issue.
                      Apparently was after made a cleaning with “Bleachbit”, I think was something in the Registry.
                      Anyway, I have solved the issue by doing this:
                      In Regedit
                      Equipo\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
                      EnableLUA
                      Change 1 to 0

                      Restart Windows

                      And then in the Start Menu search for
                      User Account Control Settings
                      (or UAC)
                      With the slider down just accept and Restart again.

                      And that’s it!
                      The [Administrator] in Notepad++ disappeared, and also others issues I had with other programs.
                      I hope this helps.

                      EkopalypseE 1 Reply Last reply Reply Quote -1
                      • EkopalypseE
                        Ekopalypse @JohnWren
                        last edited by

                        For future readers: The tip mentioned by @JohnWren disables the User Account Control feature.
                        I strongly recommend NOT doing this, it has a purpose.
                        That’s like removing the airbag from your car to save weight so you use less fuel?

                        1 Reply Last reply Reply Quote 2
                        • First post
                          Last post
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors