Basic example of using powershell to quickly modify Windows running state before and after playing a game e.g. Suspend processes, stop services, turn off windows defender realtime detection, close explorer, and adjust timer resolution and then restore the regular operating state when done. See file contents for instructions.
If anyone does mess around with this, if you suspend steamwebhelper and decide to kill explorer then UI doesn't work but you can still launch games from powershell command line using a command like this
- Added better handling for imported lists, shouldn't generally fail if the lists aren't present.
- You can now suspend/resume services like Task Scheduler or other services you can't typically stop without fully Disabling and restarting
- Added slight optimization regarding suspending Task Scheduler specifically
- Added function (GM-TrimWorkingSetAll) that trims all processes Working Set Memory/Memory In-Use (may or may not be useful for testing purposes)