Group Policy Management Console | Open

# Launch GPMC if ($DomainFQDN) Start-Process $gpmcPath -ArgumentList "/domain=$DomainFQDN" elseif ($GPOId) Start-Process $gpmcPath -ArgumentList "/gpo:$GPOId" else Start-Process $gpmcPath

if (!string.IsNullOrEmpty(domain)) psi.Arguments = $"/domain=domain"; open group policy management console

if (!System.IO.File.Exists(gpmcPath)) throw new Exception("GPMC not installed. Install RSAT."); FileName = gpmcPath

FileName = gpmcPath, UseShellExecute = true, Verb = IsAdmin() ? "" : "runas" // Request admin if not elevated ; UseShellExecute = true

var psi = new ProcessStartInfo