|
|
本帖最后由 gah99sw 于 2026-3-8 21:31 编辑
Adminitrator用户--附件-- powershell 不能右键-以管理员身份,加注册表也不行。直接运行后,就是管理员了,版本是2.0的。Get-Host | Select-Object Version只能用这个命令,其它的报错。.NET版本是4 4.5 4.5.1 4.5.2 4.6 4.7.2。我以前WIN7 64位,用 4.8 升级PSH到5.1 7.2.23,功能当然不能和WIN10相比 。就是一个编程框架环境。PS2.0 PS5.1 PS7.2.1 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Windows.PowershellAsAdmin]
"CanonicalName"="{ADB73FFC-1568-4D7D-BCD5-6D11A417AF64}"
"CommandStateSync"=""
"Description"="@shell32.dll,-37449"
"ExplorerCommandHandler"="{BF0AC53F-D51C-419F-92E3-2298E125F004}"
"Icon"="imageres.dll,-5373"
"ImpliedSelectionModel"=dword:00000001
"MUIVerb"="@shell32.dll,-37448"
"ResolveLinksInvokeBehavior"=dword:00000003
"ResolveLinksQueryBehavior"=dword:00000000
[HKEY_CLASSES_ROOT\Directory\Background\shell\RunAs]
@="@shell32.dll,-8506"
"Description"="@shell32.dll,-37445"
"Icon"="imageres.dll,-5324"
"MUIVerb"="@shell32.dll,-37444"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\RunAs\command]
@="cmd.exe /s /k pushd \"%V\""
|
|