Jump to content

Vavun

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Belarus

Posts posted by Vavun

  1. Hi

    Since ancient times I have been using this tweak to open PowerShell in the current directory.

     

    ( Shift +Right mouse click to see second "AsAdmin" line )

    Windows Registry Editor Version 5.00
    
    
    [HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Run_PowerShell]
    "Icon"="powershell.exe,-0"
    "NoWorkingDirectory"=""
    "MUIVerb"="@powershell.exe,-109"
    
    [HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Run_PowerShell\command]
    @="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoProfile -NoExit -Command \"Set-Location '%V'\""
    
    [HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Run_PowerShell_AsAdmin]
    "Icon"="powershell.exe,-0"
    "NoWorkingDirectory"=""
    "HasLUAShield"=""
    "Extended"=""
    "MUIVerb"="@powershell.exe,-109"
    
    [HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Run_PowerShell_AsAdmin\command]
    @="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoProfile -Command \"Start-Process powershell.exe -verb runAs -ArgumentList '-NoProfile','-NoExit', '-Command', 'cd %V'\""

    Looks like StartAllBack broke default "HasLUAShield" key behaviour in combination with "Icon" key

    This is SAB disabled

    2024-05-09064803.png.f7e8d490b8a67fa45a1dbf07b4de3bd7.png

     

    And this is enabled
    2024-05-09064718.png.ca4745130a0b215186fb51547370b0a6.png

     

    When disabled, the second PoSh has a small shield, as expected

×
×
  • Create New...