one thing, i use bginfo script as a computer logon script, so the computername is displayed before the user login.
do think this will work with the custom code you provided?

and i was wrong, i'm using a bat file to load bginfo.exe