Windows 10: UAC prompt - .bat

Discus and support UAC prompt - .bat in AntiVirus, Firewalls and System Security to solve the problem; Windowsversion: 1903 Hey guys I have been trying to find a topic that explained exactly what I needed. Think is, I have a file that I would like to... Discussion in 'AntiVirus, Firewalls and System Security' started by KasperHV, Mar 24, 2020.

  1. KasperHV Win User

    UAC prompt - .bat


    Windowsversion: 1903

    Hey guys

    I have been trying to find a topic that explained exactly what I needed.
    Think is, I have a file that I would like to run, but don't want to type in my administrator each time.

    I'd like right click on the file, and then be able to click on a line under Run as administrator.
    I used to work in a company where the domain management department made Regedit files that would do this.
    However as I never asked questions to how they set it up, then I now have an issue as I want to set it up, but don't know how to do it.

    So...

    I'd like to be able to right click a .bat file and then have the user run it without administrator rights.
    I don't want this user to have any administrator rights what so ever, nor do I want my password to be entered anywhere.

    From my memory, it looks something like this picture I made...

    Hope you can help.


    Best regards

    :)
     
    KasperHV, Mar 24, 2020
    #1
  2. topgundcp Win User

    Run .BAT as admin without UAC prompt?

    Create a reg file with code below and merge into the registry to avoid UAC prompt from bat file:
    Windows Registry Editor Version 5.00

    Code:
     
    topgundcp, Mar 24, 2020
    #2
  3. kc42 Win User
    Run .BAT as admin without UAC prompt?

    I've tried this on Windows 10 Pro 1803 x64, and I can't get a .bat file to run (which has text saved within to elevate to admin), without a UAC window appearing.

    I need to be able to have a colleague (with non-admin credentials), on a domain environment, have the ability to run a basic batch script to automatically start an inbuilt Windows Service, without any admin intervention required.

    Any help you can provide is greatly appreciated.

    Many thanks,

    kc
     
  4. Superfly Win User

    UAC prompt - .bat

    Run .BAT as admin without UAC prompt?

    Any elevation from Standard user should produce a UAC prompt - that's a security feature - to run the script as Admin silently from a non-Admin a/c you will have to include the username and password when elevating it.

    The work-around is running it from a Scheduled Task with System rights, thereby not hardcoding or exposing the password in the script - the caveat is the task will need to be created/imported under Admin rights.
     
    Superfly, Mar 24, 2020
    #4
Thema:

UAC prompt - .bat

Loading...
  1. UAC prompt - .bat - Similar Threads - UAC prompt bat

  2. UAC prompt for fsavailux.exe on boot

    in AntiVirus, Firewalls and System Security
    UAC prompt for fsavailux.exe on boot: I have a PC that is getting a UAC prompt on boot. User Account Control Blah blahblah Microsoft\fsavailux Verified Publisher: Microsoft Windows I've checked the file on virustotal JIC, and its squeaky clean....
  3. UAC Elevation prompts?

    in AntiVirus, Firewalls and System Security
    UAC Elevation prompts?: Which is more secure regards to the UAC Elevation prompt? And which one should I select for the Admin account? Prompt for Credentials on the Secure Desktop or Prompt for Credentials? 137776
  4. UAC Prompt

    in AntiVirus, Firewalls and System Security
    UAC Prompt: I am having difficulty accessing a website or PowerPoint document due to an issue with the UAC prompt. When the prompt comes up, I manually enter the username and password. *** Email address is removed for privacy *** Fakep@ssword1 The UAC prompt goes away for a split...
  5. How to get back the classic uac prompt

    in Windows 10 Customization
    How to get back the classic uac prompt: How do I get back the classic uac prompt? I have tried the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks method but it did not work. My PC is at the latest update. What should I do?...
  6. How to get back the classic uac prompt

    in Windows 10 Customization
    How to get back the classic uac prompt: How do I get back the classic uac prompt? I have tried the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks method but it did not work. My PC is at the latest update. What should I do?...
  7. UAC prompt question

    in AntiVirus, Firewalls and System Security
    UAC prompt question: Found it - The dimming of your desktop is referred to as the secure desktop because other programs can't run while it's dimmed. User Account Control - MDSN Denis
  8. Long Delay for UAC Prompt to Appear?

    in AntiVirus, Firewalls and System Security
    Long Delay for UAC Prompt to Appear?: Since the last update to 1607 Build 14393.576 on two PCs, it now takes about 30s for the UAC prompt or cmd.exe window to first appear on both PCs. Subsequent UAC prompts appear after a normal delay. Both PCs have Kaspersky Internet Security (KIS) 2017. I discovered turning...
  9. Run .BAT as admin without UAC prompt?

    in Windows 10 Software and Apps
    Run .BAT as admin without UAC prompt?: Edit: Marked as "Solved", because it looks like under Win 10 I can no longer do this quite the way I used to in Win 7, and I have multiple suggestions as to alternate approaches, any one of which ought to work. ((Moved from the "General" forum)) Can anyone help? I am...
  10. Does renaming these folders prompt UAC?

    in Windows 10 Support
    Does renaming these folders prompt UAC?: I was fumbling around inside a third party file explorer, and accidentally prompted the rename of the Users folder. I managed to avoid renaming it, but what would have happened if I had? Assuming you are running as administrator, does renaming the following folders prompt...