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 …
Mar
16
Rename A Computer That Is A Domain Member
Problem: A computer (or several computers) on your domain need to be renamed quickly and reliably without making a mess of Active Directory. Solution: Use the NETDOM utility that comes with the Windows Server Support Tools (SupportTools.msi on the Windows Server media). If it is not already installed, you will want to install the SupportTools.msi …