编辑secpol.通过编程方式msc
本文关键字:方式 msc 编程 secpol 编辑 | 更新日期: 2023-09-27 18:09:30
是否有办法从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);
根' secpol '…一个选项?
我找到了解决方案。从secedit导出读取是完美的:https://gist.github.com/jkingry/421802