![]() |
|
[.NET] Disable Regedit, Run, CMD, Right click in VB.net - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Disable Regedit, Run, CMD, Right click in VB.net (/showthread.php?tid=421709) |
Disable Regedit, Run, CMD, Right click in VB.net - Numair - May 15, 2010 Hello Friends. This is the way i use to Disable Regedit, Run, CMD, Right click in My project. VaQS v3 Disable Regedit Code My.Computer.Registry.SetValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "DisableRegistryTools", "1")Disable Run Code My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoRun", "1")Disable Rightclick Code My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoViewContextMenu", "1")Disable CMD Code My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System", "DisableCMD", "2")This code is written by me no copy pasting. Enjoy. * - Matt39 - May 15, 2010 Nice but if you Disable Regedit the Function: Code My.Computer.Registry.SetValue* - Cunt - May 15, 2010 This is ok been posted alot and needs admin but its ok * - jaBBatheHuTT - May 15, 2010 numair add me on msn: [email protected] Delete some PM's. I can't Pm you :P * - codepoet - May 15, 2010 thanks mate....this is helpful to know!!! * - Inveno - May 15, 2010 (May 15, 2010 04:23 AM)Wundark Wrote: Nice but if you Disable Regedit the Function: Agreed, you should this line last, because once that line has been executed the other command lines wont work. * - Breakbeat Junkie - May 15, 2010 Thank you. I'll add this to my upcoming project :) * - 08maxam - May 15, 2010 Ok if it works thanks for youre post buddyu * - WordedPuppet - Sep 29, 2016 (May 15, 2010 07:11 AM)Inveno Wrote: Agreed, you should this line last, because once that line has been executed the other command lines wont work.There is a better way to do this: Regcreate = CreateObject("WScript.Shell") Regcreate.RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools", 1, "REG_DWORD") Regcreate.RegWrite("HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\DisableCMD", 1, "REG_DWORD") Regcreate.RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoViewContextMenu", 1, "REG_DWORD") Regcreate.RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRun", 1, "REG_DWORD") ππππ * - MewtwΠΎ - Sep 29, 2016 (Sep 29, 2016 03:52 PM)WordedPuppet Wrote: There is a better way to do this: Are you serious ? You have 2 posts and digging a 6 year old thread How can people be that dumb |