开始菜单

全局位置:C:\ProgramData\Microsoft\Windows\Start Menu
个人位置:C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu

windows update 更新缓存

C:\Windows\SoftwareDistribution\Download

oem 信息

添加oem信息

1
2
3
4
5
6
7
8
9
10
11
12
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"

copy logo.bmp %windir%\media\logo.bmp

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /f /v "SupportURL" /t REG_SZ /d "http://blog.sina.com.cn/iuxt"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /f /v "Model" /t REG_SZ /d "iuxt"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /f /v "SupportHours" /t REG_SZ /d "8:00-22:00"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /f /v "SupportPhone" /t REG_SZ /d "17621268822"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /f /v "Logo" /t REG_SZ /d "C:\Windows\Media\logo.bmp"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /f /v "Manufacturer" /t REG_SZ /d "张理坤"

删除OEM信息

1
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /f

侧边栏的网盘链接(OneDrive等)

1
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace

开机自启动

注册表位置

系统

1
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

个人

1
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

只运行一次

1
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce

新建字符串值–数值名称任意,数值数据为要启动的程序路径,如C:\Program Files (x86)\WinHotKey\WinHotKey.exe
或者命令行创建 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /f /v "数值名称" /t REG_SZ /d "程序启动路径"

文件位置(开始菜单的startup文件夹)

系统启动文件夹

1
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

个人启动文件夹

1
C:\Users\你的Windows用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

快速进入 startup 文件夹
win+r 输入 shell:startup

登录界面不显示用户

1
2
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]
"administrator"=dword:00000000

IE主页

个人主页

1
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t reg_sz /d http://www.2345.com/?k393991732 /f

系统主页

1
reg add "HKU\.DEFAULT\Software\Microsoft\Internet Explorer\Main" /f /v "Start Page" /t REG_SZ /d "http://www.2345.com/?k393991732"

默认主页

1
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Default_Page_URL" /t reg_sz /d http://www.2345.com/?k393991732 /f

Windows Defender

关闭Windows Defender

1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f

这种方法和直接修改组策略是一样的,家庭版不支持组策略可以使用这种方式

服务目录

windows的服务存储的文件, 如果没有指定用户, 就会使用系统用户来运行, home目录为:

C:\Windows\System32\config\systemprofile\

比如我的syncthing数据就被保存到了 C:\Windows\System32\config\systemprofile\AppData\Local\Syncthing , 指定了当前用户的话是在 C:\Users\iuxt\AppData\Local\Syncthing