- Check if registry key already exists before creating it instead of blindly forcing, which overwrites all the data values.
- Change the ScreenBufferSize value to the max integer allowed, because before it was keeping the "low value" of 120 width which for some reason was messing up the line wrapping.
- Add $debugTrace flag instead of uncommenting to to debug
- Add a Read-Host pause at the end when debug tracing is enabled so output can be examined.
- Fix consistency of reg call
Create Console registry key and set ScreenBufferSize to maximize PowerShell/CMD output history. Disable Desktop Spotlight by setting EnabledState=0 and copy the default light wallpaper to the user's TranscodedWallpaper so sandboxes use a consistent wallpaper. Keys are created with -Force and values set as DWord.
- Add launch param to know when first launching sandbox
- Conditional adding of context menu stuff depending whether notepad and notepad++ are available