<?php
$shell = new COM("WScript.Shell") or die("Requires Windows Scripting Host");
$key="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName";
$t = $shell->RegRead($key);
print "Login User:$t<br/>\n";
?>