Below are 2 sets of buttons for command/powershell prompts. There is a normal version and one that opens each in admin for the current directory that the button is pressed from.
These buttons have worked for a long time but I noticed today that the regular non-admin versions dont launch. The admin version of the buttons do work.
I am runnign Windows 11 Pro 24H2 Build: 26100.6901
Command:
<?xml version="1.0"?>
<button backcol="none" display="both" icon_size="large" label_pos="right" textcol="none" type="menu_button">
<label>Comma&nd Prompt Here</label>
<tip>Opens an elevated command prompt with the current folder set to the Lister's current path</tip>
<icon1>/system/imageres.dll,-5323</icon1>
<function type="normal">
<instruction>wt.exe -d {sourcepath|noterm} cmd.exe</instruction>
</function>
<button backcol="none" display="both" icon_size="large" label_pos="right" textcol="none">
<label>Comma&nd Prompt Here (Admin)</label>
<tip>Opens a command prompt with the current folder set to the Lister's current path</tip>
<icon1>/system/imageres.dll,-5323</icon1>
<function type="normal">
<instruction>@admin:wt.exe -d {sourcepath|noterm} cmd.exe</instruction>
</function>
</button>
</button>
Powershell:
<?xml version="1.0"?>
<button backcol="none" display="both" icon_size="large" label_pos="right" separate="yes" textcol="none" type="menu_button">
<label>Powe&rShell Here</label>
<tip>Opens an elevated PowerShell prompt with the current folder set to the Lister's current path</tip>
<icon1>/system/imageres.dll,-5372</icon1>
<function type="normal">
<instruction>wt.exe -d {sourcepath|noterm} powershell.exe</instruction>
</function>
<button backcol="none" display="both" icon_size="large" label_pos="right" textcol="none">
<label>Powe&rShell Here (Admin)</label>
<tip>Opens a PowerShell prompt with the current folder set to the Lister's current path</tip>
<icon1>/system/imageres.dll,-5372</icon1>
<function type="normal">
<instruction>@admin:wt.exe -d {sourcepath|noterm} powershell.exe</instruction>
</function>
</button>
</button>