Get-AzureRemoteAppSession
列出集合的所有作用中和已中斷連線的 Azure RemoteApp 會話。
注意
本檔中參考的 Cmdlet 用於管理使用服務管理 API 的舊版 Azure 資源。 如需管理 Azure Resource Manager 資源的 Cmdlet,請參閱 Az PowerShell 模組 。
Syntax
Get-AzureRemoteAppSession
[-CollectionName] <String>
[[-UserUpn] <String>]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
Get-AzureRemoteAppSession Cmdlet 會列出 Azure RemoteApp 集合的所有作用中和已中斷連線的 Azure RemoteApp 會話。
範例
範例 1:列出集合中的所有會話
PS C:\> Get-AzureRemoteAppSession -CollectionName "ContosoApps"
此命令會列出名為 ContosoApps 的 Azure RemoteApp 集合中的所有會話。
參數
-CollectionName
指定 Azure RemoteApp 集合的名稱。
Type: | String |
Aliases: | Name |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Profile
指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設設定檔讀取。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserUpn
指定要取得 Azure RemoteApp 會話之使用者的使用者主體名稱(UPN)。 例如,UPN 的格式如下: PattiFuller@contoso.com 。
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | True |