Invoke-​Azure​Remote​App​Session​Logoff

Logs off an Azure RemoteApp session immediately.

Syntax

Invoke-AzureRemoteAppSessionLogoff
      [-CollectionName] <String>
      [-UserUpn] <String>
      [-Profile <AzureSMProfile>]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Invoke-AzureRemoteAppSessionLogoff cmdlet immediately logs off a user from a remote session running in Azure RemoteApp.

Examples

Example 1: Log off a user

PS C:\> Invoke-AzureRemoteAppSessionLogoff -CollectionName ContosoApps -UserUpn PattiFuller@contoso.com

This command logs off the user whose UPN is PattiFuller@contoso.com.

Required Parameters

-CollectionName

Specifies the name of the Azure RemoteApp collection.

Type:String
Aliases:Name
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-UserUpn

Specifes the user Principal Name (UPN) of a user, for example, PattiFuller@contoso.com.

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False