Amazon FSx for Windows is a fully managed file server that provides cloud storage across multiple locations. This article will provide information on the different commands you can use to quickly set up your file system.
- First use the following command to open the remote session on your Amazon FSx file system from windows EC2 instance and (get the PowerShell endpoint name from the FSx console under network & security tab):
- enter-pssession -ComputerName "FSxPowerShellEndpoint" -ConfigurationName FsxRemoteAdmin
- To turn on data deduplication with the default schedule:
- Enable-FSxDedup
- To get data duplication soon after a file is created:
- Set-FSxDedupConfiguration -MinimumFileAgeDays 0
- Turn on shadow copies (allows users to recover files and folders to previous version):
- Set-FSxShadowStorage -Default
- Set-FSxShadowCopySchedule -Default -Confirm:$False
- Enforce encryption in transit:
- Set-FsxSmbServerConfiguration -EncryptData $True -RejectUnencryptedAccess $True -Confirm:$False
*More commands provided at the link below. I listed the common ones we use.