安装 Vagrant进行测试的过程中WindowsPowershell无法升级的步骤
Closed this issue · 1 comments
meigea commented
错误代码 80070005
解决方案
创建 metasploittable
powershell
无法升级; 错误80070005powershell $PSVersionTable.PSVersion
- 下载
SubInACL.exe
这个工具 - 下载SubInACL地址
- 注意加载相应的安装位置到环境变量
执行这个命令
reset.cmd
@echo off
Echo Processing Registry Permission. Please wait...
Echo ===========1==============
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f
Echo ===========2==============
Echo Processing Folder Permission. Please wait...
Echo ===========3==============
subinacl /subdirectories %SystemDrive% /grant=administrators=f
subinacl /subdirectories %SystemDrive% /grant=system=f
Echo ===========4==============
Echo Finished.
Echo ===========5==============
pause
exit
meigea commented
仍然无法解决