How can I prevent a user logon script from running on a specific Windows Server 2003 computer?
Posted: 2006-09-25
By: FortyPoundHead
Viewed: 3,891
Filed Under:
No attachments for this post
If you want to prevent a user logon script from running on a specific Windows Server 2003 computer, like a Terminal Server, you can prevent the Userinit.exe process from running it, by altering the Userinit Value Name at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon and by setting the UserInitLoginScript variable to nul:
1. Save the following to a
@echo off
Set UserInitLogonScript=
Start %systemroot%\system32\userinit.exe
exit
2. Open a CMD.EXE window.
3. Type the following command and press Enter:
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /V Userinit /T REG_SZ /F /D "
NOTE:
Comments on this post
No comments have been added for this post.
You must be logged in to make a comment.