PC Info

Download the PowerShell script (in zip file) below to get information about your PC.

pc-info.zip
Unzip to extract the pc-info.ps1 file, right click and “Run as Administrator”. Report will be output to C:\pc-info.txt (changeable in file)

If script does not run, make sure powershell is enabled:

Get-ExecutionPolicy

Run script to enable Powershell scripts (will still ask to run each script)

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force

Lock down to disallow scripts again

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Restricted -Force

Script for PC Info

cls ### Clear Screen
$dt = Get-Date
$model = Get-WmiObject Win32_ComputerSystem | Select-Object -Property Model
$manufacturer = Get-WmiObject Win32_ComputerSystem | Select-Object -Property Manufacturer
$memory = Get-WmiObject Win32_PhysicalMemory
$processor = Get-WmiObject -Class Win32_Processor
$ram_gb = [Math]::Round((Get-WmiObject Win32_ComputerSystem).totalphysicalmemory / (1024 * 1024 * 1024))
$os = (Get-WmiObject -class Win32_OperatingSystem).Caption
$volumeInfo = Get-Volume 
$maxSpeed = $processor.MaxClockSpeed / 1024

 
$txt = "Report Date : " + $dt + "`r`n"
$txt += "`r`n"
$txt += "PC Name     : " + $env:COMPUTERNAME + "`r`n"
$txt += "`r`n"
$txt += "Processor   : " + $processor.Name + "`r`n"
$txt += "Cores       : " + $processor.NumberofCores + "`r`n"
$txt += "Max Speed   : " + $maxSpeed + " GHz`r`n"
$txt += "Manufacturer: " + $processor.Manufacturer + "`r`n"
$txt += "Socket      : " + $processor.SocketDesignation + "`r`n"
$txt += "`r`n"
$txt += "Manufacturer: " + $manufacturer.Manufacturer + "`r`n"
$txt += "Model       : " + $model.Model + "`r`n"
$txt += "Ram         : " + $ram_gb + " GB`r`n"
$txt += "OS          : " + $os + "`r`n"
$txt += "`r`n"
$txt += "Drive Count : " + $volumeInfo.Count + "`r`n"
$txt += "`r`n"

# Output volume information line by line 
$volumeInfo | ForEach-Object { 
    $sizeGB = [math]::Round(($_.Size / 1GB), 2) 
    $sizeRemainingGB = [math]::Round(($_.SizeRemaining / 1GB), 2) 
    $sizeUsedGB = $sizeGB - $sizeRemainingGB 
 
    $txt += "***** Drive Letter: $($_.DriveLetter)` *****`n"
    # $txt += "FriendlyName: $($_.FriendlyName)`r`n"
    $txt += "File Type   : $($_.FileSystemType)`r`n"
    $txt += "DriveType   : $($_.DriveType)`r`n"
    $txt += "HealthStatus: $($_.HealthStatus)`r`n"
    $txt += "Status      : $($_.OperationalStatus)`r`n"
    $txt += "Size        : $sizeGB GB`r`n"
    $txt += "Used        : $sizeUsedGB GB`r`n"
    $txt += "Available   : $sizeRemainingGB GB`r`n"
    $txt += "---------------------------`r`n"
    $txt += "`r`n"
} 
$txt | Out-File "C:\pc-info.txt"
cls ### Clear Screen
Write-Host $txt
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.