> For the complete documentation index, see [llms.txt](https://desync-4.gitbook.io/desync-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://desync-4.gitbook.io/desync-docs/russkii/zh-cn/wen-ti-yu-zhi-chi/powershell-qi-dong-cuo-wu.md).

# PowerShell 启动错误

PowerShell 出现红字，加载器未打开。按下方检查 PowerShell 版本和 Defender 历史记录。

## 示例

截图中的第一条错误为 **Add-Type: Access to the path … is denied**，表示无权访问临时文件。后面的错误可能由第一条引起，需通过以下检查查明原因。

![](https://content.gitbook.com/content/QfOA1xlt18JmodnNHjB6/blobs/wMD9h8loISCQQXdEbPCg/spaces%2FnitGYSBvlczRLpWdhsJO%2Fuploads%2FSb6mfLGd7gpqrSQlJfoU%2FDESYNC_PowerShell_access_denied.png?alt=media\&token=f495593e%20764a%204017%20bef4%20ae81695f629d)

## 1. 检查 PowerShell 版本

按[加载器指南](/desync-docs/russkii/zh-cn/qi-dong-jia-zai-qi.md)打开 Windows PowerShell：Win + R → 输入 powershell → Enter。

单独运行：

```powershell
$PSVersionTable.PSVersion
```

内置 Windows PowerShell 5.1 应显示 Major 5、Minor 1。若版本更旧，请打开系统自带 Windows PowerShell，检查 Windows 更新，并将结果发送给支持。

## 2. 检查 Microsoft Defender 历史记录

打开“Windows 安全中心 → 病毒和威胁防护 → 保护历史记录”。查找与启动尝试时间一致的事件并打开详情。

若事件与加载器启动相关，保存事件名称及详情截图，按[电脑准备](/desync-docs/russkii/zh-cn/dian-nao-zhun-bei.md)核对设置。若没有相关事件，尚不能确定原因，请把检查结果交给支持。

## 仍然报错

联系 [@desync\_support\_bot](https://t.me/desync_support_bot)，附上：

* 从第一条错误开始的完整 PowerShell 窗口，尽可能附启动视频。
* 版本检查结果。
* 相关保护历史记录事件详情。
* 如有此前保存的加载器诊断 TXT，可一并发送。

若加载器可以打开，请[发送日志](/desync-docs/russkii/zh-cn/wen-ti-yu-zhi-chi.md)；完全打不开时，使用现有材料联系支持。

Microsoft 参考：[Windows PowerShell 5.1](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_windows_powershell_5.1?view=powershell-5.1)、[版本变量](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-5.1#psversiontable)、[保护历史记录](https://support.microsoft.com/en-us/windows/security/windows-security/protection-history-in-the-windows-security-app)。
