PowerShell to enable and disable the Windows autologon with an automatic generated password.
In the automation, we have is often the case that an interactive desktop is required. This can be achieved with an autologon. Here is a PowerShell script for automating this function.