Skip to content

Disconnect-LMAccount

Terminal window
Disconnect-LMAccount [<CommonParameters>]

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.

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

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

None. You cannot pipe objects to this command.

Section titled “None. You cannot pipe objects to this command.”

None. This command does not generate any output.

Section titled “None. This command does not generate any output.”

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