//為註冊表新增鍵值
Registry.SetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer","RestrictRun",1)
//向新增的鍵值中寫入資料
Registry.SetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\RestrictRun","1","RegEdit.exe");
沒有留言:
張貼留言