I am working on WPF and have a problem i.e. I want to restrict Windows 8 machine from running other application when my application started. I know Windows 8 allows us to run only specified application using "gpedit.msc " but i want it through C# so that administrator does not have to go through all those steps for allowing specified application.