右键添加常用功能

右键添加用记事本打开

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\用记事本打开\command]
@="notepad.exe %1"

复制以上代码,存为.reg文件,双击导入注册表,随便找个文件试下吧,对于打开那些未知文件很方便,不用打开记事本,再把文件拖入了。。Windows全系统可用,不包括嵌入式系统……

不想复制粘贴的话,可以下载这个

桌面右键添加电源选项

Windows Registry Editor Version 5.00 

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu] 
"MUIVerb"="电源控制" 
"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown" 
"Icon"="shell32.dll,215" 
"Position"="bottom" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock] 
@="锁定" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock\command] 
@="Rundll32 User32.dll,LockWorkStation" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff] 
@="注销" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff\command] 
@="Shutdown -l" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch] 
@="更改用户" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch\command] 
@="tsdiscon.exe" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep] 
@="睡眠" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep\command] 
@="rundll32.exe powrprof.dll,SetSuspendState Sleep" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate] 
@="休眠" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate\command] 
@="Shutdown -h" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart] 
@="重启" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart\command] 
@="Shutdown -g -t 00" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown] 
@="关机" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown\command] 
@="Shutdown -s -f -t 00"

复制以上代码,存为.reg文件,双击导入注册表

Win8测试可用,7不清楚……

获取文件TrustedInstaller权限 删除Windows.old文件夹很有用

Windows Registry Editor Version 5.00




[HKEY_CLASSES_ROOT\*\shell\runas]

@="获取TrustedInstaller权限"




[HKEY_CLASSES_ROOT\*\shell\runas\command]

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"




[HKEY_CLASSES_ROOT\Directory\shell\runas]

@="获取TrustedInstaller权限"

"NoWorkingDirectory"=""





[HKEY_CLASSES_ROOT\Directory\shell\runas\command]

@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

删除获取TrustedInstaller权限

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\*\shell\runas]

[-HKEY_CLASSES_ROOT\Directory\shell\runas]

复制以上代码,存为.reg文件,双击导入注册表

发布者

gt

QQ: 1520667045 一个名叫坏人的博客,他很想成为WEB攻城狮,因为他认为每个前端开发者的审美观都是很挑的……

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据