Configuring log-on scripts to run via powershell from the “Run” key in Windows registry
If you’ve tried to add a powershell script to a registry run key, you’ve probably discovered that it doesn’t run with powershell. Instead, Windows just opens the script in Notepad and leaves it sitting there all naked and exposed! So in order to launch the powershell scripts we’re going to need to use a .bat…