I have a script that references the user's name. Currently, I'm doing that with a vbscript that queries AD. But I'm having a problem when a machine is on a different domain than the user. Thinking about it a little further, my script wouldn't work for anyone who's offline or otherwise cannot contact a DC.
Surely there's a way to find the current Display Name, since it shows up quite clearly right at the top of the Start Menu.
Any ideas?