Whats the recommendation (DSC res) if we want a process to be always running.

I want a process (exe) to be always running on machine, even after it reboots. Currently I had it as a WindowsProcess and its not launched after reboot. Can someone tell me whats the recommended resource to be used for this scenario ?

If you want a process always running. Then DSC won’t be a best way to do it. you could create a WindowsService which will run this exe wit a start mode of Automatic.

DSC autocorrection has a minimum refresh time of 15 mins, hence the process can be not running for max 15 mins if you use DSC.

You could still use DSC to make sure the service is running, but consistency check will happen only with 15mins interval for any resource.