Disconnect-LMAccount
Syntax
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
#Disconnect from the current LM portalDisconnect-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.