Open Group Policy Management Console -

try Process.Start("gpmc.msc"); catch (Exception ex) MessageBox.Show($"Failed to open GPMC: ex.Message\nEnsure RSAT is installed.");

if (!System.IO.File.Exists(gpmcPath)) throw new Exception("GPMC not installed. Install RSAT."); open group policy management console

string gpmcPath = @"C:\Windows\System32\gpmc.msc"; try Process

private void btnOpenGPMC_Click(object sender, EventArgs e) string gpmcPath = @"C:\Windows\System32\gpmc.msc"