Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Thu May 20, 2010 10:58 am Post subject: Show Administratior account on Logon WinXp screen |
|
|
Hi,
this is the sorce code of my Show Administrator user on WinXp's logon screen
Code: | #-----------------------------------------------------------------------------#
# #
# Module: #
# #
# Author: Andrea Sperotti #
# #
# Copyright: 2005/2006 #
# #
#-----------------------------------------------------------------------------#
Title Show Admin
DIALOG CREATE,Show Admin,-1,0,160,65,ONTOP,BALLOONTIPS,SMALLCAP
DIALOG ADD,STYLE,STYLE1,Verdana,10,,,
DIALOG ADD,BUTTON,Annulla,42,111,44,20,Close,Close and exit
DIALOG ADD,BUTTON,Abilita,10,8,64,24,Show,Enable showing Administrator user on Logon screen
DIALOG ADD,BUTTON,Disabilita,10,89,64,24,Hide,Disable showing Administrator user on Logon screen
DIALOG SHOW
:Loop
%%Dato = @RegRead(HLM,SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList,Administrator,0)
If @Greater(%%Dato,0)
Dialog Disable,Abilita
Dialog Enable,Disabilita
Else
Dialog Enable,Abilita
Dialog Disable,Disabilita
End
Wait Event
%t = @Event()
Goto %t
:AbilitaButton
Registry Write,HLM,SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList,Administrator,1,DWORD
If @Ok()
Info Success
Else
Warn Error
End
Goto Loop
:DisabilitaButton
Registry Write,HLM,SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList,Administrator,0,DWORD
If @Ok()
Info Success
Else
Warn Error
End
Goto Loop
:Close
:AnnullaButton
Stop
|
Byez |
|