有没有办法以编程方式从 secpol.msc 编辑设置?
我正在寻找类似的东西:
ManagementScope scope = new ManagementScope("root\\rsop\\user\\" + user.User.Value.Replace('-', '_'));
ObjectQuery query = new ObjectQuery("Select * from RSOP_PolicySetting");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query);
root\secpol\... 是一个选项吗?