Create Elevated Shortcut without UAC prompt in Windows 10  

Page 11 of 20 FirstFirst ... 910111213 ... LastLast
  1. Brink's Avatar
    Posts : 56,332
    64-bit Windows 10 Pro for Workstations build 21359
    Thread Starter
       #100

    Matthew Wai said:
    @Brink,
    Could you use this updated version "Create_an_elevated_shortcut.zip" in your tutorial? It now works with both the default desktop and a relocated desktop.
    Done.
      My Computers


  2. Posts : 25
    Multiple
       #101

    Brink said:
    I don't think it can work with "wushowhide.diagcab" since it would most likely run an application file within the .cab instead.
    @Brink

    Easy way, as usual.
    It's matter to create a .bat which launches the .cab.
    Then giving runas Administrator to the .bat
    Quite easy!
      My Computer

  3. Matthew Wai's Avatar
    Posts : 5,072
    Windows 10 Home 20H2
       #102

    When I double-click on "wushowhide.diagcab", no UAC prompt pops up.
      My Computer


  4. Posts : 25
    Multiple
       #103

    Matthew Wai said:
    When I double-click on "wushowhide.diagcab", no UAC prompt pops up.
    Check your UAC settings
      My Computer

  5. Matthew Wai's Avatar
    Posts : 5,072
    Windows 10 Home 20H2
       #104

    Cirus said:
    Check your UAC settings
    My UAC settings:
    Create Elevated Shortcut without UAC prompt in Windows 10-uac-settings.jpg
      My Computer


  6. Posts : 25
    Multiple
       #105

    Matthew Wai said:
    My UAC settings:
    Create Elevated Shortcut without UAC prompt in Windows 10-uac-settings.jpg
    I preferred
    Create Elevated Shortcut without UAC prompt in Windows 10-uac.png
      My Computer

  7. Matthew Wai's Avatar
    Posts : 5,072
    Windows 10 Home 20H2
       #106

    Cirus said:
    It's matter to create a .bat which launches the .cab.
    Then giving runas Administrator to the .bat
    Option One works fine with a .bat file, which will be run as an administrator without a UAC prompt.
    Try it yourself. Report the results.
      My Computer

  8. Paul Black's Avatar
    Posts : 12,191
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #107

    I want to create an elevated cmd prompt shortcut that when clicked will ignore the UAC prompt. I also want to create an elevated PowerShell prompt shortcut that when clicked will ignore the UAC prompt. There are a lot of interpretations of how this can be achieved on the Net. Which of the following, if any, will open the cmd and PowerShell shortcut as an aministrator without the UAC prompt? . . .

    Code:
    cmd /c echo|set/p=\"%L\"|powershell -NoP -W 1 -NonI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb runas\""
    Code:
    PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%V && start PowerShell && exit' -Verb runas\""
    Code:
    Powershell.exe "Start-Process cmd -Verb RunAs"
    Code:
    Powershell.exe "Start-Process PowerShell -Verb RunAs"
      My Computer

  9. Matthew Wai's Avatar
    Posts : 5,072
    Windows 10 Home 20H2
       #108

    Paul Black said:
    I want to create an elevated cmd prompt shortcut that when clicked will ignore the UAC prompt. I also want to create an elevated PowerShell prompt shortcut that when clicked will ignore the UAC prompt.
    Both can be done by option one: Create Elevated Shortcut without UAC prompt in Windows 10
    Just enter the names and the following paths:
    %windir%\System32\cmd.exe
    %windir%\system32\WindowsPowerShell\v1.0\powershell.exe

    Note: the second path could be different as per your version.
      My Computer

  10. Paul Black's Avatar
    Posts : 12,191
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #109

    Matthew Wai said:
    Both can be done by option one: Create Elevated Shortcut without UAC prompt in Windows 10
    Just enter the names and the following paths:
    %windir%\System32\cmd.exe
    %windir%\system32\WindowsPowerShell\v1.0\powershell.exe

    Note: the second path could be different as per your version.
    Thanks for the reply, it is appreciated!
    Are there not one liner commands that I can enter into the shortcut then?
      My Computer


 
Page 11 of 20 FirstFirst ... 910111213 ... LastLast

Tutorial Categories

Create Elevated Shortcut without UAC prompt in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  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 17:48.
Find Us




Windows 10 Forums