Get Windows Remote PowerShell Endpoint programatically

0

Is there a way of getting the Windows Remote PowerShell Endpoint using Cloud Formation when the FSx Repository is created as a resource using AWS::FSx::FileSystem or from powershell using something like Get-FSXFileSystem -FileSystemId $FSxId

已提问 1 年前261 查看次数
1 回答
0

Found it eventually for Powershell:

Import-Module 'AWSPowerShell' $FSx = id of fsx $FsxSystem = Get-FSXFileSystem -FileSystemId $FSx $FSxDNSName = $FsxSystem.DNSName $FSxRemoteDNSName = $FsxSystem.WindowsConfiguration.RemoteAdministrationEndpoint Write-Host $FSxDNSName Write-Host $FSxRemoteDNSName

Note you need the role to be able to describe the filesystem e.g. by adding the permision AmazonFSxReadOnlyAccess to the role the server is running as.

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则