主题
Windows 设置
基本设置
- 更换下载、图片默认位置
- 关闭 BitLocker
- 安全中心
- 关闭“防火墙”
- “病毒和威胁防护”中排除指定文件夹
- 关闭游戏模式
PowerShell
更新脚本执行策略
打开 PowerShell(以管理员身份运行),执行:
powershell# - RemoteSigned:允许本地脚本无签名运行,但要求从互联网下载的脚本必须有数字签名。 # - Unrestricted:允许所有脚本运行,适合测试环境,但安全性较低。 Set-ExecutionPolicy RemoteSigned # 查看当前策略 Get-ExecutionPolicy在 PowerShell 配置文件中添加常用的环境变量(文件中,永久设置):
powershell# 设置代理 $env:HTTP_PROXY = "http://192.168.1.88:7897" $env:HTTPS_PROXY = "http://192.168.1.88:7897"备忘
PowerShell 配置文件:
powershell# 创建 powershell 配置文件(如果不存在) if (-not (Test-Path $profile)) { New-Item $profile -Force } # 查看当前配置文件路径 # Powershell 5 -> %userprofile%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 # Powershell 6+ -> %userprofile%\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 $profile # 打开配置文件 Invoke-Item $profile # 重新加载配置文件 . $profile临时设置环境变量:
powershell# 临时设置 $env:VARIABLE_NAME = "value" # 临时删除 Remove-Item Env:VARIABLE_NAME
Edge 浏览器
- 设置 -> 系统和性能 -> 系统
- 启动增强:关闭
- 关闭 Microsoft Edge 在后台继续运行:关闭
WPS
- 配置和修复工具 -> 高级 -> 功能定制
- 关闭模板推荐:勾选
- 关闭在线素材资源库:勾选
- 关闭场景化功能推荐:勾选
