Featured image of post Windows

Windows

网络故障一般处理

CMD

1
ipconfig /flushdns
1
netsh winsock reset

关闭遥测

组策略

gpedit.msc -> 计算机设置 -> 管理模板 -> Windows组件 -> 数据收集和预览版 -> 右侧允许遥测设置为已禁用

禁止某程序运行

组策略

gpedit.msc -> 用户配置 -> 管理模板 -> 系统 -> 不运行指定的Windows应用程序 -> 输入程序文件名

网络驱动器异常

CMD

1
net use z: /d

z 可以是其他网络驱动器盘符

添加/删除路由

CMD

1
net add/delete 10.1.2.0/24 192.168.1.1

右键菜单在左边

运行

Ctrl+R -> shell:::{80F3F1D5-FECA-45F3-BC32-752C152E456E} -> 其他 -> 惯用左手

Tips

目录链接一般用 /j 参数

检查和修复系统文件

CMD(Admin)

1
sfc /scannow

Install gpedit (Group Policy Editor) on Windows 10 Home Edition

CMD(Admin)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
@echo off

REM Slightly edited from source:
REM https://www.itechtics.com/easily-enable-group-policy-editor-gpedit-msc-in-windows-10-home-edition/

REM This script installs gpedit (Group Policy Editor) on Windows 10 Home Edition
REM (Because it's not included by default in Home Edition)

pushd "%~dp0"

dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt

for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

del List.txt
pause

GitHub Gist: SeanPesce/gpedit_enabler.bat

Licensed under CC BY-NC-SA 4.0