I've been messing around with using a startup script. Aside from some setup issues I've run into an issue with Kixtart which I want to verify is expected or a bug.

If I run WhoAmI in the startup bat file, and output it to a text file, I get:
nt authority\system

However, if I use kix and output the value of @userid to a text file, I get:
ComputerName$

So my questions are. Is this expected? Shouldn't kix display something along the lines of "System"?

I would like to be able to know if I am running as System. Obviously I could do something like if @userid=@wksta + "$" but that seems kludgy. Is there another way that I am not thinking about?