< Back
Disconnect-AdbServer
Post
NAME Disconnect-AdbServer
SYNOPSIS
Logout from the adb server. Clear the session in the module context.
SYNTAX
Disconnect-AdbServer [[-Session] <Object>] [<CommonParameters>]
DESCRIPTION
Invoke the adb rest method /api/v1/users/me/token to kill the token in
the adb and clear the session in the module state.
PARAMETERS
-Session <Object>
The adb session.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Disconnect-AdbServer
Disconnect the adb session stored in the module context.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Disconnect-AdbServer -Session $adbSession
Disconnect the specified adb session.
RELATED LINKS
SYNOPSIS
Logout from the adb server. Clear the session in the module context.
SYNTAX
Disconnect-AdbServer [[-Session] <Object>] [<CommonParameters>]
DESCRIPTION
Invoke the adb rest method /api/v1/users/me/token to kill the token in
the adb and clear the session in the module state.
PARAMETERS
-Session <Object>
The adb session.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Disconnect-AdbServer
Disconnect the adb session stored in the module context.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Disconnect-AdbServer -Session $adbSession
Disconnect the specified adb session.
RELATED LINKS