注册表类

2016年1月11日 0 条评论 1.53k 次阅读 0 人点赞
::开启3389并设置防火墙允许(win7)
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Terminal" "Server /v fDenyTSConnections /t REG_DWORD /d 0 /f
netsh advfirewall firewall add rule name="mstsc-3389" dir=in action=allow protocol=TCP localport=3389

::"运行"不保存历史记录
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /f /va
>C:\test-run.ini echo HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU [2]
regini C:\test-run.ini
rd C:\926

添加自己到开机启动

reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run  /v %~nx0 /t REG_SZ /d "%~f0" /f

PS:%~nx意为文件名(包括后缀)

%~f意为文件完整路径(包括文件名等)

IE代理

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyServer"=""

指定程序不能运行

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%文件名%" /v debugger /t reg_sz /d debugfile.exe /f

PS:%文件名%包括整个文件的完整路径。 

文件夹选项设置

rem 显示扩展名
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 0 /f 

rem 显示隐藏文件
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 1 /f

Sevenfal

这个人太懒什么东西都没留下

文章评论(0)