2023年4月

获取应用链接:

方法1:

打开应用商店-搜索应用-打开应用-分享图标--获取链接

方法2:

打开 https://apps.microsoft.com/store/apps 搜索应用

复制地址栏

下载离线包:

打开https://store.rg-adguard.net/

粘贴应用链接点击搜索

右侧选择框中的四个选项分别代表:

Fast:Windows Insider Fast 通道,属于最新开发版;

Slow:Windows Insider Slow 通道,相对 Fast 较稳定;

RP:Release Review 也是微软软件发布的一个通道,软件成熟度较高,待 RP 过后,就会正式发布。

Retail:指正式发布的包,也是系统默认的等级。

记事本保存为.reg 导入注册表

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open]

"MuiVerb"="@photoviewer.dll,-3043"

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command]

@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\

6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\

00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\

25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\

00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\

6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\

00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\

5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\

00,31,00,00,00

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\DropTarget]

"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print\command]

@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\

6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\

00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\

25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\

00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\

6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\

00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\

5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\

00,31,00,00,00

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print\DropTarget]

"Clsid"="{60fd46de-f830-4894-a628-6fa81bc0190d}"

或者以下批处理:

@echo off
echo 正在恢复旧版图片查看器,请稍候...
echo.
echo 备份原始程序...
takeown /f %windir%\System32\WindowsPhotoViewer.dll
icacls %windir%\System32\WindowsPhotoViewer.dll /save %userprofile%\Desktop\WindowsPhotoViewer.dll.acl
copy "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll" "%windir%\System32\WindowsPhotoViewer.dll"
echo.
echo 恢复默认关联...
echo Windows Registry Editor Version 5.00 > "%userprofile%\Desktop\RestoreWindowsPhotoViewer.reg"
echo [HKEY_CLASSES_ROOT\Applications\photoviewer.dll] >> "%userprofile%\Desktop\RestoreWindowsPhotoViewer.reg"
echo "NoOpenWith"="" >> "%userprofile%\Desktop\RestoreWindowsPhotoViewer.reg"
echo.
echo 恢复成功!
pause

将文件保存为“restorephotoviewer.bat”(注意扩展名必须为“.bat”)。
双击运行“restorephotoviewer.bat”文件,然后按照提示操作即可。

1.C盘 根目录新建token

2.Save-Module -Name NtObjectManager -Path c:\token 选A

3.Install-Module -Name NtObjectManager 选A

4.Set-ExecutionPolicy Unrestricted 选A

5.Import-Module NtObjectManager 选A

6.

sc.exe start TrustedInstaller

Set-NtTokenPrivilege SeDebugPrivilege

$p = Get-NtProcess -Name TrustedInstaller.exe

$proc = New-Win32Process cmd.exe -CreationFlags NewConsole -ParentProcess $p

7.

whoami /groups /fo list

启用于默认 组的所有者

由第六步打开的cmd程序就拥有TrustedInstaller权限了

修改文件名:

ren 1.txt 2.txt

移动文件:

move  文件(相对路径\绝对路径)   目录(相对路径\绝对路径)

复制文件:

xcopy 文件(相对路径\绝对路径)   目录(相对路径\绝对路径)

删除文件:

DEL 文件(相对路径\绝对路径)

删除文件夹:

RD /S 目录(相对路径\绝对路径)

部分cmd命令