| Command variable | PowerShell variable | Description |
|---|---|---|
| %ALLUSERSPROFILE% | $env:ALLUSERSPROFILE | Shared app data across all users |
| %APPDATA% | $env:APPDATA | Roaming application data folder |
| %COMPUTERNAME% | $env:COMPUTERNAME | Hostname of the local machine |
| %OneDrive% | $env:OneDrive | OneDrive folder path (if OneDrive is installed) |
| %PATH% | $env:PATH | Executable search path for processes |
| %PROGRAMFILES% | $env:ProgramFiles | Default directory for 64-bit app installations |
| %SystemDrive% | $env:SystemDrive | Drive where Windows is installed |
| %SYSTEMROOT% | $env:SystemRoot | Path to Windows directory |
| %TEMP% or %TMP% | $env:TEMP or $env:TMP | Temporary file location |
| %USERNAME% | $env:USERNAME | Your Windows username |
| %USERPROFILE% | $env:USERPROFILE | Current user’s profile directory |
Last active
February 2, 2026 09:25
-
-
Save geminorum/620d901d3eae10320120f8a142ad4a04 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment