Is it possible to create a restore point along with all required tasks (enable system protection, resize shadowstorage) from C# in a netframework 3.5 target?
I found some examples, but they all use System.Management.Automation to execute PowerShell scripts which isn't available in netframework 3.5. What I am trying to do is to bind the whole action (enable system restore if disabled, resize shadowstorage and create restore point) on a button inside a GUI.
Here is a winforms code using WMI, enjoy: