GPO Windows Environment Variables

Windows Environment Variables

%ALLUSERSPROFILE%
Default for Windows XP: C:\Documents and Settings\All Users
Default for Windows 7/8/2008: C:\ProgramData

%APPDATA%
Default for Windows XP: C:\Documents and Settings\{username}\Application Data
Default for Windows 7/8/2008: C:\Users\{username}\AppData\Roaming

%ALLUSERSPROFILE%
Default for Windows XP: C:\Program Files\Common Files
Default for Windows 7/8/2008: C:\Program Files\Common Files

%ALLUSERSPROFILE%
Default for Windows XP: C:\Program Files (x86)\Common Files
Default for Windows 7/8/2008: C:\Program Files (x86)\Common Files

%ALLUSERSPROFILE%
Default for Windows XP: {computername}
Default for Windows 7/8/2008: {computername}

%COMSPEC%
Default for Windows XP: C:\Windows\System32\cmd.exe
Default for Windows 7/8/2008: C:\Windows\System32\cmd.exe

%HOMEDRIVE%
Default for Windows XP: C:
Default for Windows 7/8/2008: C:

%HOMEPATH%
Default for Windows XP: \Documents and Settings\{username}
Default for Windows 7/8/2008: \Users\{username}

%LOCALAPPDATA%
Default for Windows XP: N/A
Default for Windows 7/8/2008: C:\Users\{username}\AppData\Local

%LOGONSERVER%
Default for Windows XP: \\{domain_logon_server}
Default for Windows 7/8/2008: \\{domain_logon_server}

%PATH%
Default for Windows XP: C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem;{plus program paths}
Default for Windows 7/8/2008: C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem;{plus program paths}

%PATHEXT%
Default for Windows XP: .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH;
Default for Windows 7/8/2008: .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH; .MSC

%ProgramData%
Default for Windows XP: N/A
Default for Windows 7/8/2008: C:\ProgramData

%ProgramFiles%
Default for Windows XP: C:\Program Files
Default for Windows 7/8/2008: C:\Program Files

%ProgramFiles(x86)% Only for 64bit systems
Default for Windows XP: C:\Program Files (x86)
Default for Windows 7/8/2008: C:\Program Files (x86)

%PROMPT%
Default for Windows XP: C:>
Default for Windows 7/8/2008: C:>

%PSModulePath%
Default for Windows XP: N/A
Default for Windows 7/8/2008: %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\

%Public%
Default for Windows XP: N/A
Default for Windows 7/8/2008: C:\Users\Public

%SYSTEMDRIVE%
Default for Windows XP: C:
Default for Windows 7/8/2008: C:

%SYSTEMROOT%
Default for Windows XP: C:\Windows
Default for Windows 7/8/2008: C:\Windows

%TEMP% and %TMP%
Default for Windows XP: C:\Documents and Settings\{username}\Local Settings\Temp
Default for Windows 7/8/2008: C:\Users\{Username}\AppData\Local\Temp

%USERDOMAIN%
Default for Windows XP: {userdomain}
Default for Windows 7/8/2008: {userdomain}

%USERNAME%
Default for Windows XP: {username}
Default for Windows 7/8/2008: {username}

%USERPROFILE%
Default for Windows XP: %SystemDrive%\Documents and Settings\{username}
Default for Windows 7/8/2008: %SystemDrive%\Users\{username}

%WINDIR%
Default for Windows XP: C:\Windows
Default for Windows 7/8/2008: C:\Windows

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s