Skip to content

Disconnect-LMAccount

Syntax

Terminal window
Disconnect-LMAccount [<CommonParameters>]

Description

The Disconnect-LMAccount function clears stored API credentials for a previously connected LM portal. It’s useful for switching between LM portals or clearing credentials after a script runs.

Examples

Example 1

Terminal window
#Disconnect from the current LM portal
Disconnect-LMAccount

Parameters

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None. You cannot pipe objects to this command.

Outputs

None. This command does not generate any output.

Notes

Once disconnected you will need to reconnect to a portal before you will be allowed to run commands again.