Test Foro de elhacker.net SMF 2.1

Programación => Programación General => .NET (C#, VB.NET, ASP) => Mensaje iniciado por: adan-2994 en 19 Agosto 2011, 23:53 PM

Título: bloquear el Admin. tareas desde el registro (VB NET)
Publicado por: adan-2994 en 19 Agosto 2011, 23:53 PM
Bueo qiero saber como crear la clave y el valor en el registro desde net para bloquear el Administrdr. de T.
Ya se que desde esta ruta:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr

Estoy usando el objeto Wscript.Shell y hago esto
Código (vbnet) [Seleccionar]
Dim admin As String = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr"
Dim WSHShell
            WSHShell = CreateObject("Wscript.Shell")

            WSHShell.RegWrite(admin, 1)
            WSHShell = Nothing


y ME Sale el error:
Raíz no válida en la clave del registro "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr".

Como puedo solucionar esto
Título: Re: bloquear el Admin. tareas desde el registro (VB NET)
Publicado por: Meta en 20 Agosto 2011, 21:41 PM
Hola:

Pregunta en los foros oficiales de VB .net. Cuando tengas la pregunta hecha, pon el enlace aquí.

http://social.msdn.microsoft.com/Forums/es-ES/vbes/threads

Suerte...:)

Saludo.