**Microsoft.PowerShell.Security.Resources.dll 手动安装步骤:**
1. **获取文件**
从可信源(如官方 PowerShell 安装包或 NuGet 仓库)提取目标区域性(如 `en-US`、`zh-CN`)的 `Microsoft.PowerShell.Security.Resources.dll` 文件,确保版本与主模块 (`Microsoft.PowerShell.Security.dll`) 严格匹配。
2. **定位模块目录**
- **系统级路径**:
PowerShell 5.1:`%SystemRoot%System32WindowsPowerShellv1.0ModulesMicrosoft.PowerShell.Security`
PowerShell 7+:`%ProgramFiles%PowerShell7ModulesMicrosoft.PowerShell.Security`
- **用户级路径**:
`%UserProfile%DocumentsPowerShellModulesMicrosoft.PowerShell.Security`
3. **部署资源文件**
- 创建 `` 子目录(如 `en-US`),将资源文件复制至此目录,确保目录结构与区域性标识符一致。
4. **验证安装**
```powershell
Import-Module Microsoft.PowerShell.Security -Verbose # 检查资源加载状态
Get-ExecutionPolicy -List # 触发本地化输出验证
```
**注意**:需管理员权限操作系统目录;若主模块未安装,需优先通过 `Install-Module` 部署完整模块。