Created
August 5, 2025 22:13
-
-
Save jcanfield/19630cb87728eef1f9e70445f5d4fc83 to your computer and use it in GitHub Desktop.
Windows 11 Informational $PROFILE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command | Environment Variables (PowerShell) | |
---|---|---|
%ALLUSERSPROFILE% | $Env:ALLUSERSPROFILE | |
%APPDATA% | $Env:APPDATA | |
%CD% | $Env:CD | |
%CMDCMDLINE% | ||
%CMDEXTVERSION% | ||
%CommonProgramFiles% | $Env:CommonProgramFiles | |
%CommonProgramFiles(x86)% | $Env:CommonProgramFiles(x86) | |
%CommonProgramW6432% | $Env:CommonProgramW6432 | |
%COMPUTERNAME% | $Env:COMPUTERNAME | |
%ComSpec% | $Env:ComSpec | |
%DATE% | ||
%DriverData% | $Env:DriverData | |
%ERRORLEVEL% | ||
%HOMEDRIVE% | $Env:HOMEDRIVE | |
%HOMEPATH% | $Env:HOMEPATH | |
%LOCALAPPDATA% | $Env:LOCALAPPDATA | |
%LOGONSERVER% | $Env:LOGONSERVER | |
%NUMBER_OF_PROCESSORS% | $Env:NUMBER_OF_PROCESSORS | |
%OneDrive% | $Env:OneDrive | |
%OS% | $Env:OS | |
%Path% | $Env:Path | |
%PATHEXT% | $Env:PATHEXT | |
%PROCESSOR_ARCHITECTURE% | $Env:PROCESSOR_ARCHITECTURE | |
%PROCESSOR_IDENTIFIER% | $Env:PROCESSOR_IDENTIFIER | |
%PROCESSOR_LEVEL% | $Env:PROCESSOR_LEVEL | |
%PROCESSOR_REVISION% | $Env:PROCESSOR_REVISION | |
%ProgramData% | $Env:ProgramData | |
%ProgramFiles% | $Env:ProgramFiles | |
%ProgramFiles(x86)% | $Env:ProgramFiles(x86) | |
%ProgramW6432% | $Env:ProgramW6432 | |
%PROMPT% | ||
%PSModulePath% | $Env:PSModulePath | |
%PUBLIC% | $Env:PUBLIC | |
%RANDOM% | ||
%SESSIONNAME% | $Env:SESSIONNAME | |
%SystemDrive% | $Env:SystemDrive | |
%SystemRoot% | $Env:SystemRoot | |
%TEMP% | $Env:TEMP | |
%TIME% | ||
%TMP% | $Env:TMP | |
%USERDOMAIN% | $Env:USERDOMAIN | |
%USERDOMAIN_ROAMINGPROFILE% | $Env:USERDOMAIN_ROAMINGPROFILE | |
%USERNAME% | $Env:USERNAME | |
%USERPROFILE% | $Env:USERPROFILE | |
%WINDIR% | $Env:WINDIR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add oh-my-posh to the PATH environment variable for the current session | |
$env:Path += ";C:\Users\user\AppData\Local\Programs\oh-my-posh\bin" | |
# Initialize oh-my-posh prompt with your config file | |
oh-my-posh init pwsh --config "$HOME\atomic.omp.json" | Invoke-Expression | |
# Welcome message with user and system info | |
Write-Host "Welcome, $env:USERNAME to $env:COMPUTERNAME running on $($env:PROCESSOR_ARCHITECTURE) architecture." | |
Write-Host "PowerShell version: $($PSVersionTable.PSVersion)" | |
Write-Host "It's currently $(Get-Date -Format 'HH:mm:ss') on $(Get-Date -Format 'dddd, MMMM dd, yyyy')" | |
$sysuptime = [math]::Round((Get-Date) - (gcim Win32_OperatingSystem).LastBootUpTime).TotalDays,2 # Total system uptime | |
WRite-Host "System Update: $sysuptime" | |
Write-Host "" | |
# Additional system info | |
Write-Host "$env:COMPUTERNAME is running on processor: $($env:PROCESSOR_IDENTIFIER)" | |
Write-Host "" | |
Write-Host "Any questions, please contact system admin at [email protected]" | |
Write-Host "" | |
# Display system info with neofetch if installed | |
if (Get-Command neofetch -ErrorAction SilentlyContinue) { | |
neofetch | |
} else { | |
Write-Host "Neofetch not found. Please install neofetch for system info display." | |
} | |
Write-Host "" | |
Write-Host "Disk Space Available" | |
Get-PSDrive -PSProvider FileSystem | Select-Object Name, @{Name="Free(GB)";Expression={[math]::Round($_.Free/1GB,2)}}, @{Name="Used(GB)";Expression={[math]::Round(($_.Used/1GB),2)}}, @{Name="Total(GB)";Expression={[math]::Round($_.Used/1GB + $_.Free/1GB,2)}} | |
Write-Host " " | |
# Get physical memory info from CIM | |
$os = Get-CimInstance Win32_OperatingSystem | |
$totalMemoryGB = [math]::Round($os.TotalVisibleMemorySize / 1MB, 2) # Total memory in GB | |
$freeMemoryGB = [math]::Round($os.FreePhysicalMemory / 1MB, 2) # Free memory in GB | |
$usedMemoryGB = [math]::Round($totalMemoryGB - $freeMemoryGB, 2) # Used memory in GB | |
Write-Host "Memory Status (in GB):" | |
Write-Host " Total Memory: $totalMemoryGB GB" | |
Write-Host " Free Memory: $freeMemoryGB GB" | |
Write-Host " Used Memory: $usedMemoryGB GB" | |
#[math]::Round((Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory/1GB,2) | |
Write-Host " " | |
Write-Host "Current Weather" | |
~/.bin/show-weather-basic.ps1 | |
Write-Host " " | |
Write-Host "Run btop4win view current system resources..." | |
## Variables for Windows 10/11 on Console & Powershell | |
## To view all variables, check-out the corresponding CSV file | |
## Command-EnvironmentVariablesPowerShell.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment