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.