a Script to retrieve user profile name
I am looking for a script that ca retrieve the name of the user profile created on the workstation.
workstations are members of the domain and users have an account in the domain.
Sometimes when looking into C:\Documents and Settings, you can see username by itself and sometimes username.domainname.
it's hard to know which one is the user using.