Welcome To UnderWeaR PoLution!

4:42:00 AM

Prevent User Logon Script From Running

Posted by ødhie

You may experience certain situations where you may want to prevent a computer from running a user logon script. This maybe caused by spywares or adwares, which runs this script on startup and totally messes up your system. The user logon script usually can be detected as a userinit.exe service running in the task manager.

The user logon script is started from the Userinit.exe process. The Userinit registry value describes the programs that are started by the Winlogon.exe process. The Winlogon.exe process retrieves the Userinit startup parameters from a registry entry inside the following Winlogon registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

The parameter that controls the user logon script is set in the UserInitLoginScript variable.

You don't have to know all those mumbo-jumob, but to prevent the system from running the user logon script, the UserInitLoginScript variable must be removed. To do this, follow these steps:

* Click Start, point to Programs, point to Accessories, and then click Notepad.

* Copy and paste the following code into Notepad:
@echo off Set UserInitLogonScript= Start %systemroot%\system32\userinit.exe exit

* Save the text file as a program file by using the .cmd file name extension. For example, save it as DisableLogonScript.cmd

* Click Start, click Run, type regedit, and then click OK.

* Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

* In the right pane, double-click Userinit.

* In the Value data box, delete the userinit.exe entry, and then type the full path of the file that you created in step 3.

* Click OK.

* Exit Registry Editor.

Enjoy a user script free system running everytime you startup.

0 comments:

Post a Comment