Step by step walk through of creating a Power Automate UI flow to lock your workstation
We will be using a manual flow button to trigger the UI flow to lock the PC
This can also be done using the location trigger (geofence) - so the PC can be locked when you are away from your desk