When Windows Server 2012 R2 gets hurt -- because of a rogue process or virus that messes up the configuration -- a PowerShell tool can act as the healer.
Microsoft Windows PowerShell DSC (Desired State Configuration) will roll back to a previous known state if an outage occurs. This feature provides a set of PowerShell language extensions, cmdlets and a process known as declarative scripting. The idea behind Desired State Configuration is to provide administrators with a method for maintaining consistent configuration sets across computers or devices. Admins can write an expression about system configuration, and the system will ensure that the proper state is maintained.