
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 …