Forum latest

How-To: Limited Account Tweak - Appendix
Written by Samuknow   
Monday, 11 September 2006 08:05
Article Index
How-To: Limited Account Tweak
Create Game Account
Create Game Account (Cont.)
Hide Game Account
Hide Game Account (Cont.)
Registry Tweaks
Create Shortcuts
Appendix
All Pages

Contents of file 'xp_hide_users.vbs' 

'xp_hide_users.vbs
'Hide User on the Windows XP Welcome Screen
'© Doug Knox - 05/01/02
'Downloaded from www.dougknox.com

Option Explicit
On Error Resume Next

'Declare variables
Dim WSHShell, n, p, itemtype, MyBox, User, Title, Prompt

'set variables
p = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList\"
itemtype = "REG_DWORD"
n = 0

Prompt = "Enter the username you wish to hide."
Title = "Hide User on Welcome screen"
User = InputBox(Prompt, Title,"")

If User = "" Then
    Title = "Error!"
    Prompt = "You left the user name blank."
    MyBox = MsgBox(Prompt,4096,Title)
Else
    p = p & User
    Set WSHShell = WScript.CreateObject("WScript.Shell")
    WSHShell.RegWrite p, n, itemtype
    Title = "Success"
    Prompt = User & " is now hidden on the Welcome screen."   
   
    MyBox = MsgBox(Prompt, 4096, Title)
End If

Set WshShell = Nothing

 

Contents of file 'OnlyRunUsingAble2PlayAccount.Reg'

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"Logoff"="logoff"

 



 
Don't Click Here Don't Click Here Either