ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Windows 10 Allowing a Regular User to Launch One Application as Admin

    IT Discussion
    windows windows 10 security runas sudo runastool
    5
    6
    793
    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.
    • scottalanmillerS
      scottalanmiller
      last edited by

      We've got a Windows 10 box that traditionally the customer has given admin rights to the end user because there is one simple application that runs on it that needs them. Instead of having them have system-wide administration rights (especially given that they were hit with ransomware this week) we want to lock them to only have admin rights for this single application.

      Windows 10 (and all version from Windows Vista and later) has the built in command line tool called runas. This is purpose built for this reason. Kind of like sudo for UNIX, but not quite the same functionality. This would be great, but requires the user to know and enter the password of the elevated account. That's great for maximum security, but might not be transparent enough for a lot of users or situations.

      A free tool to get around that limitation is RunAsTool. This is a GUI tool that does something similar but allows the password to be stored.

      1 Reply Last reply Reply Quote 3
      • M
        mattbagan
        last edited by

        What about using the /savecred switch?
        runas /savecred /user:USER-NAME "C:\full\path\of\Program.exe"

        1 Reply Last reply Reply Quote 1
        • dbeatoD
          dbeato
          last edited by

          This is what I use

          https://docs.microsoft.com/en-us/windows/deployment/planning/creating-a-custom-compatibility-fix-in-compatibility-administrator

          https://blogs.technet.microsoft.com/askperf/2011/06/17/demystifying-shims-or-using-the-app-compat-toolkit-to-make-your-old-stuff-work-with-your-new-stuff/

          J 1 Reply Last reply Reply Quote 1
          • J
            JasGot @dbeato
            last edited by

            @dbeato said in Windows 10 Allowing a Regular User to Launch One Application as Admin:

            This is what I use

            https://docs.microsoft.com/en-us/windows/deployment/planning/creating-a-custom-compatibility-fix-in-compatibility-administrator

            https://blogs.technet.microsoft.com/askperf/2011/06/17/demystifying-shims-or-using-the-app-compat-toolkit-to-make-your-old-stuff-work-with-your-new-stuff/

            We've been doing it this way for years. 🙂

            1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch
              last edited by JaredBusch

              Didn't read the links. But if it involves runas and saved creds, we do this.

              We make a bat file and give it the icon of the application.
              That launches the application with a /runas

              Example, we have a shortcut file with this as the target.

              C:\Windows\System32\runas.exe /user:domain\localadmin /savecreds "C:\AdminShortcuts\Bobcat\Bobcat.bat"
              

              1415d1b3-7982-427c-a820-c20d838617fe-image.png

              That bat file launches.

              @echo off
              cd \
              cd Program Files (x86)
              cd G2ScanBobcat
              start bobcat~1.exe
              

              c6ad1cfd-e08b-4e87-9b04-fb7019ee742c-image.png

              We have more than one application requiring this.
              6412e521-7da3-4a58-af99-e37a661ca079-image.png

              1 Reply Last reply Reply Quote 2
              • JaredBuschJ
                JaredBusch
                last edited by

                The first time it is used, we have to manually type the domain\localadmin password.
                995d4dcc-8f3f-428f-a56e-aafa241ca644-image.png
                After that it is stored in credential manager.
                e44ddd17-77ee-4318-a779-8edbc1471c2a-image.png

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post