Shortcut to Batch File Issue

Page 1 of 4 123 ... LastLast

  1. Posts : 526
    Windows 10 (22H2)
       #1

    Shortcut to Batch File Issue


    Hoping for a 'for dummies' solution.

    I have a shortcut that runs a batch file. All of it's file permissions are set to full allow. The shortcut to this batch file is configured to 'run as admin'. However, the shortcut execution is initiating the UAC prompt. How do I configure 'the shortcut (or maybe via code in the batch file itself)' to run without the UAC prompt?

    I skimmed thru the tutorial and it seems to apply to apps only, afaik.

    -thank you
      My Computer


  2. Posts : 42,875
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Alas I don't know which tutorial you are referring to.

    This is the one that comes to mind.
    Create Elevated Shortcut without UAC prompt in Windows 10

    - and it refers to a shortcut.
      My Computers


  3. Posts : 526
    Windows 10 (22H2)
    Thread Starter
       #3

    ^
    thx for reply and tutorial link. Option One looks to be my 'for dummies' way to go (7 steps vs 20 steps!).

    However, I am unable to get past step 4 as nothing (no window/dialogue ...) appears for me to proceed.
      My Computer


  4. Posts : 42,875
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    I assume you've spotted the omission in the tutorial where you delete the .log from the downloaded file name (so it's then a bat file).

    That done you should see:
    Shortcut to Batch File Issue-1.jpg

    Double click that- a couple of windows flash and close and you should see:
    Shortcut to Batch File Issue-2.jpg
      My Computers


  5. Posts : 526
    Windows 10 (22H2)
    Thread Starter
       #5

    dalchina said:
    I assume you've spotted the omission in the tutorial ...
    no, how does one spot an ommision?
      My Computer


  6. Posts : 42,875
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    Well, I described it.. - the .log I found appended. But now I don't know what adds that .log- and you may not see it given Brink's comment.. so all you need to do is make sure the file you download and run is ......bat and its icon is the one I showed in a screenshot.
      My Computers


  7. Posts : 526
    Windows 10 (22H2)
    Thread Starter
       #7

    ^
    If it matters, I download all of these tutorial bats & regs to a special folder on the desktop, not the desktop itself.

    this is what I get after Step 2 :
    Attached Thumbnails Attached Thumbnails Shortcut to Batch File Issue-capture.jpg  
      My Computer


  8. Posts : 42,875
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #8

    Ok, then what happens when you double click it?

    I see a window flash up, then a UAC prompt.
      My Computers


  9. Posts : 526
    Windows 10 (22H2)
    Thread Starter
       #9

    dalchina said:
    Ok, then what happens when you double click it?

    I see a window flash up, then a UAC prompt.
    I do too. And, as I said in post #3, nothing. Well, actually, there is a 2nd window flash after cliking ok to the UAC prompt.
      My Computer


  10. Posts : 42,875
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #10

    I am now just wondering if there's a difference between running this as a standard user compared with an admin account.
    Are you logged in as admin?

    Try running the attached bat file- it's just the first few lines of that bat file - extract it from the zip file.
    Shortcut to Batch File Issue Attached Files
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:17.
Find Us




Windows 10 Forums