

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# PowerShell에서 원격 관리를 위해 Amazon FSx CLI를 사용하는 일회성 파일 시스템 설정 작업
<a name="one-time-admin-tasks"></a>

다음 PowerShell의 원격 관리용 Amazon FSx CLI 명령을 사용하여 모범 사례에 따라 파일 시스템 관리 작업을 빠르게 구현하세요.

## 스토리지 사용량 관리
<a name="manage-disk-usage"></a>

다음 명령을 사용하여 파일 시스템 스토리지 사용량을 관리합니다.
+ 기본 일정에 따라 데이터 중복 제거를 활성화하려면 다음 명령을 실행합니다.

  ```
  Invoke-Command -ComputerName $FSxWindowsRemotePowerShellEndpoint -ConfigurationName FSxRemoteAdmin -ScriptBlock { Enable-FsxDedup }
  ```

  선택적으로, 최소 파일 보존 기간 없이 다음 명령을 사용하여 파일이 생성된 직후 파일에서 데이터 중복 제거 작업을 실행할 수 있습니다.

  ```
  Invoke-Command -ComputerName $FSxWindowsRemotePowerShellEndpoint -ConfigurationName FSxRemoteAdmin -ScriptBlock { Set-FSxDedupConfiguration -MinimumFileAgeDays 0 }
  ```

  자세한 내용은 [데이터 중복 제거를 통한 스토리지 비용 절감](managing-storage-configuration.md#using-data-dedup) 섹션을 참조하세요.

   
+ 다음 명령을 사용하여 “추적” 모드에서 사용자 스토리지 할당량을 활성화할 수 있습니다. 이 모드는 보고 목적으로만 사용되며 적용을 위한 것이 아닙니다.

  ```
  $QuotaLimit = Quota limit in bytes
  $QuotaWarningLimit = Quota warning threshold in bytes
  Invoke-Command -ComputerName $FSxWindowsRemotePowerShellEndpoint -ConfigurationName FSxRemoteAdmin -ScriptBlock { Enable-FSxUserQuotas -Track -DefaultLimit $Using:QuotaLimit -DefaultWarningLimit $Using:QuotaWarningLimit }
  ```

  자세한 내용은 [스토리지 할당량 관리](managing-user-quotas.md) 섹션을 참조하세요.

## 섀도우 복사본을 활성화하여 최종 사용자가 파일 및 폴더를 이전 버전으로 복구할 수 있도록 지원
<a name="turn-on-shadow-copies"></a>

다음과 같이 기본 일정(평일 오전 7시와 정오)에 따라 섀도우 복제본을 활성화합니다.

```
Invoke-Command -ComputerName $FSxWindowsRemotePowerShellEndpoint -ConfigurationName FSxRemoteAdmin -ScriptBlock { Set-FsxShadowStorage -Default }
     
Invoke-Command -ComputerName $FSxWindowsRemotePowerShellEndpoint -ConfigurationName FSxRemoteAdmin -ScriptBlock { Set-FsxShadowCopySchedule -Default -Confirm:$False}
```

자세한 내용은 [기본 스토리지 및 일정을 사용하도록 섀도우 복사본 구성](setting-up-fsx-shadow-copies.md) 단원을 참조하십시오.

## 전송 중 암호화 적용
<a name="admin-encryption"></a>

다음 명령은 파일 시스템에 연결하는 클라이언트에 대해 암호화를 적용합니다.

```
Invoke-Command -ComputerName $FSxWindowsRemotePowerShellEndpoint -ConfigurationName FSxRemoteAdmin -ScriptBlock { Set-FsxSmbServerConfiguration -EncryptData $True -RejectUnencryptedAccess $True -Confirm:$False}
```

열려 있는 모든 세션을 닫고 암호화를 사용하여 현재 연결된 클라이언트가 다시 연결되도록 할 수 있습니다.

```
Invoke-Command -ComputerName $FSxWindowsRemotePowerShellEndpoint -ConfigurationName FSxRemoteAdmin -ScriptBlock { Close-FSxSmbSession -Confirm:$False}
```

자세한 내용은 [전송 중 암호화 관리](encryption-in-transit.md#manage-encrypt-in-transit) 및 [사용자 세션 및 열린 파일](manage-sessions-and-files.md) 섹션을 참조하세요.