如何以编程方式使用.NET代码更改本地组策略设置(gpedit.msc) [英] How can I change local group policy settings (gpedit.msc) using .NET code programmatically

查看:156
本文介绍了如何以编程方式使用.NET代码更改本地组策略设置(gpedit.msc)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试一键禁用Windows 10更新。

如何更改本地组策略设置(Gpedit.Msc)使用.Net代码以编程方式禁用更新窗口10 .. < br $> b $ b

我尝试了什么:



从未尝试过---- -------------------------------------------------- ---------------

I want try to disable windows 10 update in one click ..
How Can I Change Local Group Policy Settings (Gpedit.Msc) Using .Net Code Programmatically to disable update windows 10..

What I have tried:

never try before ---------------------------------------------------------------------

推荐答案

以前从未尝试过这个,但是线程外观可以帮助你这样做 -

c# - 如何使用.NET应用Windows组策略? - Stack Overflow [ ^ ]



这不是一个答案而只是指向一个可能包含你的答案的线程的指针。



希望,它帮助:)
Well have never tried this before but following thread looks can help you doing so-
c# - How to apply Windows group policy using .NET? - Stack Overflow[^]

This is not an answer rather just a pointer to a thread which may contain the answer for you.

Hope, it helps :)


政策只是将值戳到注册表中,仅此而已。



如果您有关键名称,值名称和写入注册表的值,您只需将值写入代码中的注册表。
Policies are just poking values into the registry, nothing more.

If you've got the key names, value names, and the values to write to the registry, you simply write the values to the registry in your code.


这篇关于如何以编程方式使用.NET代码更改本地组策略设置(gpedit.msc)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆