How do you find out the domain name,the user name of currently logged in user and the path where user profile is stored using just a single command?
Well,this can be done because of the very helpful set command available from Windows command prompt.
In one of my earlier posts,I had described using the set command to check the domain controller availability in a domain based environment.
Here,let’s find out the other useful functions of set.
Open command prompt ( Start > Run > cmd)
Type – “set u” and hit Enter.
In fact,if we want to see environment variables starting with a particular letter,the same command can be applied as set followed by the letter like set a.
Typing set a will show variables beginning with a,in this case it will point out useful info of All Users in Windows as well as the path of Application Data.
For getting a quick look at what set command is all about,type set /? :
Feel free to try out different combinations of set,it will be a time saver.
Peace.


