禁止远程修改注册表
发布时间:2020-12-14 02:35:19 所属栏目:Windows 来源:网络整理
导读:实现效果: 知识运用: RemoteRegAccess键用来设置是否允许修改远程注册表 值为 1 时表禁止 0 时为允许 实现效果: private void button1_Click(object sender,EventArgs e) { RegistryKey rKey = Registry.LocalMachine; rKey= rKey.CreateSubKey(@"SYSTEM
实现效果: 知识运用: RemoteRegAccess键用来设置是否允许修改远程注册表 值为 1 时表禁止 0 时为允许 实现效果: private void button1_Click(object sender,EventArgs e) { RegistryKey rKey = Registry.LocalMachine; rKey= rKey.CreateSubKey(@"SYSTEMCurrentControlSetControlSecurePipeServerswinreg"); rKey.SetValue("RemoteRegAccess",1,RegistryValueKind.DWord); rKey.Close(); MessageBox.Show("设置禁用成功!"); } private void button2_Click(object sender,EventArgs e) { RegistryKey rKey = Registry.LocalMachine; rKey = rKey.CreateSubKey(@"SYSTEMCurrentControlSetControlSecurePipeServerswinreg"); rKey.SetValue("RemoteRegAccess",RegistryValueKind.DWord); rKey.Close(); MessageBox.Show("设置启用成功!"); } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 什么是为Windows的mysql数据库绘制ERD的最佳软件
- windows10远程桌面连接身份验证错误:函数不受支持,这可能
- windows – Chef:如何检查服务是否已安装?
- windows – Active Directory的备份
- 如何排除一个属性在Azure Table存储中被持久化?
- windows-server-2008 – 购买Windows 2008服务器的最具成本
- windows-7 – Cisco Anyconnect:禁用远程桌面的Vpn建立功能
- Wix安装程序问题:为什么RestartManager将服务标记为RMCrit
- Windows安装程序 – Web安装项目中的虚拟目录
- windows-xp – 如何强制某些应用程序使用特定的网络连接?