Skip to content

Instantly share code, notes, and snippets.

@ZSendokame
Last active January 10, 2025 23:33
Show Gist options
  • Select an option

  • Save ZSendokame/91c110ed2b4fc0bfebf57b1a4d5a4795 to your computer and use it in GitHub Desktop.

Select an option

Save ZSendokame/91c110ed2b4fc0bfebf57b1a4d5a4795 to your computer and use it in GitHub Desktop.
Neofetch-like, based on zJairo's wfetch but native. (7.3.1 or up)
$uptime = Get-Uptime
$os = Get-CimInstance -ClassName CIM_OperatingSystem
$version = Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion"
Write-Host "###### ####### " -ForegroundColor Cyan -NoNewLine
Write-Host "$env:username@$env:computername"
Write-Host "###### ####### " -ForegroundColor Cyan -NoNewLine
Write-Host "Architecture $($operativeSystem.OSArchitecture)"
Write-Host "###### ####### " -ForegroundColor Cyan -NoNewLine
Write-Host "$($uptime.Days)d, $($uptime.Hours)h, $($uptime.Minutes)m"
Write-Host " PowerShell $($PSVersionTable.PSVersion)"
Write-Host "###### ####### " -ForegroundColor Cyan
Write-Host "###### #######" -ForegroundColor Cyan
Write-Host "###### #######" -ForegroundColor Cyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment