Since W8 it's otherwise permanent.
- the old fashioned way a batch file would probably shine here
- proprietary programs game of chances including this
- open source tool
- this? EDIT: it does not disable DWM per se, but it helps for many of the problems you may otherwise exclusively attribute to it
- W10 tool
Untested. Breakage expected. V-sync supposedly working again.