0
프로그래밍 방식으로 secpol.msc에서 설정을 편집하는 방법이 있습니까?프로그래밍 방식으로 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.exe 내보내기에서 읽기는 완벽합니다. https://gist.github.com/jkingry/421802 – hupseb