Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Disable Regedit, Run, CMD, Right click in VB.net

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.
Nice but if you Disable Regedit the Function:
Code
My.Computer.Registry.SetValue
Wont Work
This is ok been posted alot and needs admin but its ok
numair add me on msn: [email protected]
Delete some PM's. I can't Pm you :P
thanks mate....this is helpful to know!!!
PHP & .NET Contributor.
(May 15, 2010 04:23 AM)Matt39 Wrote:  Nice but if you Disable Regedit the Function:
Code
My.Computer.Registry.SetValue
Wont Work

Agreed, you should this line last, because once that line has been executed the other command lines wont work.
Thank you. I'll add this to my upcoming project :)
Ok if it works thanks for youre post buddyu
(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")

🙂🙂🙂🙂
(Sep 29, 2016 03:52 PM)WordedPuppet Wrote:  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")

🙂🙂🙂🙂

Are you serious ? You have 2 posts and digging a 6 year old thread
How can people be that dumb


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by eras269Feb 8, 2022 01:12 PM 0 105 Feb 8, 2022 01:12 PM
Last Post: eras269
[C#] by 00xByteDec 21, 2021 11:42 AM 2 187 Dec 21, 2021 11:42 AM
Last Post: oje28830
[.NET] by 00xByteDec 2, 2021 05:15 AM 1 140 Dec 2, 2021 05:15 AM
Last Post: gghitman