What is the meaning of these Windows Environment variables:
Who
Those are all set on login, and they are, as SocialAddict said, very useful in scripts when you need to perform an action on different systems.
I'm not too clear on your other question, a samba server shouldn't care about those variables.
See http://vlaurie.com/computers2/Articles/environment.htm for a detailed explanation.