这是我有道云n年前的笔记,因为不玩有道云了,所以现在拿出来分享给大家吧!
https://note.youdao.com/ynoteshare1/index.html?id=20683f189baee27eee505f41583deec1&type=note
增加关机命令
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\情迁关机]
"Icon"="imageres.dll,84"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\情迁关机\command]
@="shutdown -s -t 0"
命令提示符
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\情迁命令提示符]
"Icon"="imageres.dll,246"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\情迁命令提示符\command]
@="cmd.exe"
增加桌面 右键电源选项
;Created by lojun
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu]
"MUIVerb"="情迁菜单"
"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown;startcmd;starttaskmgr"
"Icon"="shell32.dll,214"
;211 锁,
"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 -r -f -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"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\startcmd]
@="打开命令行"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\startcmd\command]
@="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\starttaskmgr]
@="任务管理器"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\starttaskmgr\command]
@="taskmgr.exe"
增加复制文件夹功能
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13}]
获取目录权限
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\runas]
@="获取文件权限"
"NoWorkingDirectory"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\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"
设置管理员密码命令
net user zheng lovepwd
net user zheng * 任意密码输入
所有文件添加 浏览一个文件 打开
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\浏览文件打开]
[HKEY_CLASSES_ROOT\*\shell\浏览文件打开\command]
@=" \"%1\" \"%1\""
添加新建cmd功能
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.cmd]
@="cmdfile"
[HKEY_CLASSES_ROOT\.cmd\PersistentHandler]
@="cmd文件"
[HKEY_CLASSES_ROOT\.cmd\ShellNew]
"NullFile"=""
添加新建reg功能
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.reg]
@="regfile"
[HKEY_CLASSES_ROOT\.reg\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\.reg\ShellNew]
"NullFile"=""
文件夹右键获取权限
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\runas]
@="(情迁)获取文件权限"
"NoWorkingDirectory"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\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"
移动到文件夹功能
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB631-2971-11D1-A18C-00C04FD75D13}]
电脑属性添加开机关机选项
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\关闭电脑]
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\关闭电脑\command]@="shutdown -s -hybrid -t 0"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\用户注销]
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\用户注销\command]@="logoff"
开启服务关闭服务功能
@echo off
title 情迁一键关闭server服务批处理
net stop "MSSQLSERVER"
echo ①.执行关闭-【MSSQLSERVER】主服务操作[提供数据的存储、处理和受控访问]
net stop "MSSQLServerADHelper"
echo ②.执行关闭-【MSSQLServerADHelper】服务操作[支持与 Active Directory 的集成。]
net stop "SQLSERVERAGENT"
echo ③.执行关闭-【SQLSERVERagent】服务操作[执行作业、监视 SQL Server、激发警报]
net stop "MSSQLServerOLAPService"
echo ④.执行关闭-【MSSQLServerOLAPService】服务操作
net stop "SQLBrowser"
echo ⑤.执行关闭-【SQLBrowser】服务操作
net stop "MsDtsServer"
echo ⑥.执行关闭-【MsDtsServer】服务操作[为 SSIS 包的存储和执行提供管理支持。]
net stop "SQLWriter"
echo ⑦.执行关闭-【SQLWriter】服务操作[提供通过 Windows VSS 基础结构备份/还原 Microsoft SQL server 的接口]
net stop "msftesql"
echo ⑧.执行关闭-【msftesql】服务操作[快速创建结构化和半结构化数据的内容和属性的全文索引,以允许对此数据进行快速的语言搜索。]
::SQLBrowser
pause
关闭虚拟机服务功能
@echo off
title 情迁一键开启虚拟机服务批处理
net stop "VMAuthdService"
echo ①.已执行关闭VMAuthdService服务操作
net stop "VMnetDHCP"
echo ②.已执行关闭VMnetDHCP服务操作
net stop "VMware NAT Service"
echo ③.已执行关闭VMware NAT Service服务操作、
net stop "VMUSBArbService"
echo ④.已执行关闭VMUSBArbService服务操作
net stop "VMwareHostd"
echo ⑤.已执行关闭VMwareHostd服务操作
pause
方法一:自制“获取超级管理员权限工具”
一、获取Win10超级管理员权限
新建一个文本文件,然后把以下命令复制到文本中:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[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\exefile\shell\runas2]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\exefile\shell\runas2\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]
@="管理员取得所有权"
"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"
然后把该文本文档命名为“Win10管理员取得所有权.reg” ,然后双击导入注册表即可,这样就获得了Win10超级管理员权限。在任意文件或文件夹上点击右键即可看到“管理员取得所有权”选项。
二、取消已获取的Win10超级管理员权限
这里指的是取消右键菜单中的“管理员取得所有权”选项。方法是新建一个文本文档,把以下命令复制到文本中:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\runas]
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[-HKEY_CLASSES_ROOT\dllfile\shell]
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[-HKEY_CLASSES_ROOT\exefile\shell\runas]
[HKEY_CLASSES_ROOT\exefile\shell\runas]
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\exefile\shell\runas\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"
网友评论