How to modify local group policy setting programatically

前端 未结 3 1751
你的背包
你的背包 2021-01-18 21:16

I am looking for a way to programatically change the value of a group policy setting without having to reboot a machine or install any additional components on it

Lo

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-18 21:37

    I wrote a .NET library to assist with this problem. You can read about it here. It is open and source and you can get code and binaries here. Once you know the registry values that are relevant you can make the necessary changes to them using this library and it will save them into the registry.pol file.

提交回复
热议问题