

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 啟動 Amazon FSx 遠端 PowerShell 工作階段
<a name="start-remote-powershell-session"></a>

本主題提供在 FSx for Windows File Server 檔案伺服器上啟動長期遠端 PowerShell 工作階段的說明。

**在檔案系統上啟動遠端 PowerShell 工作階段**

1. 以建立檔案系統時所選擇的委派 FSx 管理員群組成員身分，連接至具有檔案系統網路連線能力的運算執行個體。

1.  在運算執行個體上開啟 Windows PowerShell 視窗。

1. 在 PowerShell 中，輸入下列命令，在您的 Amazon FSx 檔案系統上開啟長期遠端工作階段。`Remote-PowerShell-Endpoint` 將 取代為您要管理的檔案系統的 Windows Remote PowerShell 端點。使用 `FsxRemoteAdmin`做為工作階段組態名稱。

   ```
   PS C:\Users\delegateadmin> enter-pssession -ComputerName Remote-PowerShell-Endpoint -ConfigurationName FsxRemoteAdmin
   [fs-0123456789abcdef0]: PS>
   ```

   如果您的執行個體不屬於 Amazon FSx Active Directory 網域，系統會提示您在快顯視窗中輸入使用者登入資料。輸入 FSx 管理員群組成員的使用者憑證。如果您的執行個體已加入網域，將不會要求您提供登入資料。
**重要**  
如果您使用自我管理的 Active Directory 組態，並在沒有適當 Active Directory 群組政策設定的情況下變更服務帳戶，Windows Remote PowerShell 端點可能會變更。如需詳細資訊，請參閱 [變更 Amazon FSx 服務帳戶](changing-ad-service-account.md) 以取得詳細資訊。