$tab="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
$hide=1 ; 1 will hide the LLOUN while 0 will display it
$ret1=writevalue("$tab","DontDisplayLastUserName","$hide","REG_SZ")
$ret2=readvalue("$tab","DontDisplayLastUserName")
if $ret2="1"
$lloun="suppressed"
else
$lloun="displayed"
endif
? " Last logged on username is " $lloun
_________________________
How to ask questions the smart way <-----------> Before you ask