Monday, July 18, 2011

"Run as Different User" In Windows 7 Context Menu

To Add "Run As Different User" in Context Menu:

  1. Open Note Pad Then type in the below mention:
           Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=""
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"

[HKEY_CLASSES_ROOT\exefile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"

[HKEY_CLASSES_ROOT\batfile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=""
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"

[HKEY_CLASSES_ROOT\batfile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"

[HKEY_CLASSES_ROOT\cmdfile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=""
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"
[HKEY_CLASSES_ROOT\cmdfile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"

[HKEY_CLASSES_ROOT\mscfile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=""
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"

[HKEY_CLASSES_ROOT\mscfile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"

[HKEY_CLASSES_ROOT\Msi.Package\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=""
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"

[HKEY_CLASSES_ROOT\Msi.Package\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"
3. Save it as  "Add Run As Different User.reg"
4. Then run .reg file and reboot the system.

To Remove "Run As Different User" in Context Menu:
  1. Open Note Pad Then type in the below mention:
            Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\exefile\shell\runasuser]

[-HKEY_CLASSES_ROOT\batfile\shell\runasuser]

[-HKEY_CLASSES_ROOT\cmdfile\shell\runasuser]

[-HKEY_CLASSES_ROOT\mscfile\shell\runasuser]

[-HKEY_CLASSES_ROOT\Msi.Package\shell\runasuser]

3. Save it as  "Remove Run As Different User.reg"
4. Then run .reg file and reboot the system.

1 comment: