Mar
17

Useful Environment Variables

Here is a list of some useful environment variables. %USERPROFILE% %WINDIR% or %SYSTEMROOT% (basically interchangable) %PROGRAMFILES% %APPDATA% %TEMP% %USERNAME% %USERDOMAIN% %COMPUTERNAME% %DATE% %TIME% Example: Let’s say Active Directory is getting full of unused user and computer accounts and you want to do an inventory to see who is using what. Add something this to the …

Continue reading »

Mar
17

How To Determine A User’s Profile Path

Problem: You have a computer with several user accounts and several profiles, but they don’t all match up.  You need a quick way to determine where the currently logged on user’s profile lives. Solution: Open a command prompt and type the following: echo %userprofile% The command will return a single line that is the current …

Continue reading »