

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 对访问 Amazon FSx CLI 进行故障排除 PowerShell
<a name="cant-access-rps"></a>

导致无法使用 Remote 连接到文件系统的潜在原因有很多 PowerShell，每种原因都有自己的分辨率，如下所示。

要首先确保可以成功连接到 Windows 远程 PowerShell 端点，还可以运行基本的连接测试。例如，您可以运行 `test-netconnection endpoint -port 5985` 命令。

## 文件系统的安全组缺少允许远程 PowerShell 连接所需的入站规则
<a name="w2aac20c19b7"></a>

文件系统的安全组必须有允许端口 5985 上流量的入站规则，才能建立远程 PowerShell 会话。有关更多信息，请参阅 [Amazon VPC 安全组](limit-access-security-groups.md#fsx-vpc-security-groups)。

## 你在 Amazon 托管的 Microsoft 活动目录和你的本地活动目录之间配置了外部信任
<a name="w2aac20c19b9"></a>

要使用 PowerShell 带有 Kerberos 身份验证的 Amazon FSx Remote，您需要在客户端上为林搜索顺序配置本地组策略。有关更多信息，请参阅 Microsoft 文档 [Configure Kerberos Forest Search Order（KFSO）](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/hh921473(v=ws.10)?redirectedfrom=MSDN)。

## 尝试启动远程会 PowerShell 话时出现语言本地化错误
<a name="w2aac20c19c11"></a>

您需要在 `-SessionOption (New-PSSessionOption -uiCulture "en-US")` 命令中添加以下命令：`-SessionOption`

以下是在文件系统上启动远程会 PowerShell 话`-SessionOption`时使用的两个示例。

```
PS C:\Users\delegateadmin> Invoke-Command -ComputerName {{Windows Remote PowerShell Endpoint}} -ConfigurationName FSxRemoteAdmin -scriptblock {{{fsx-command}}} -SessionOption (New-PSSessionOption -uiCulture "en-US")
```

```
PS C:\Users\delegateadmin> Enter-Pssession -ComputerName {{Windows Remote PowerShell Endpoint}} -ConfigurationName FsxRemoteAdmin -SessionOption (New-PSSessionOption -uiCulture "en-US")
```