In Azure automation, there exists a useful feature called Variables. Variables are assets in Azure Automation that allow you to set and query various values.
Here is a quick and easy way to remotely log off end users who are still logged into their computers. This is especially useful when you are trying to do maintenance.