Last active
August 29, 2015 14:21
-
-
Save bklockwood/6ac946e92e90e68384cc to your computer and use it in GitHub Desktop.
Collect Windows install info (simple)
This file contains 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
#replace get-ciminstance with get-wmiobject if using v2 | |
Get-CimInstance win32_operatingsystem | ft -autosize ` | |
CSName, ` | |
Caption, ` | |
OSArchitecture, ` | |
@{Label="RAM, GB"; Expression={[math]::round($_.TotalVisibleMemorySize/1mb, 2)}} | |
Get-CimInstance win32_processor | ft -autosize ` | |
@{Label="Socket"; Expression={$_.SocketDesignation}}, ` | |
Name, ` | |
@{Label="x86/64"; Expression={$_.AddressWidth}}, ` | |
@{Label="Cores"; Expression={$_.NumberOfCores}}, ` | |
MaxClockSpeed, ` | |
Status | |
get-volume | ft -autosize ` | |
DriveLetter, ` | |
FileSystem, ` | |
HealthStatus, ` | |
@{Label="Size, GB"; Expression={[math]::round($_.Size/1gb,2)}}, ` | |
@{Label="Freespace, GB"; Expression={[math]::round($_.SizeRemaining/1gb,2)}} | |
Get-NetAdapter | ft -autosize ` | |
InterfaceDescription, ` | |
Status, ` | |
MacAddress, ` | |
LinkSpeed | |
-=-=-=-OUTPUT-=-=-=-=-=-=-=- | |
CSName Caption OSArchitecture RAM, GB | |
------ ------- -------------- ------- | |
MYCOMPUTER Microsoft Windows 8.1 Pro 64-bit 3.89 | |
Socket Name x86/64 Cores MaxClockSpeed Status | |
------ ---- ------ ----- ------------- ------ | |
SOCKET 0 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz 64 2 1696 OK | |
DriveLetter FileSystem HealthStatus Size, GB Freespace, GB | |
----------- ---------- ------------ -------- ------------- | |
C NTFS Healthy 117.99 21.12 | |
D exFAT Healthy 59.45 9.48 | |
F NTFS Healthy 1863.02 830.57 | |
G FAT32 Healthy 7.6 0.22 | |
InterfaceDescription Status MacAddress LinkSpeed | |
-------------------- ------ ---------- --------- | |
Plugable Ethernet Up 00-50-B6-5A-52-DA 1 Gbps | |
Marvell AVASTAR 350N Wireless Network Controller Disabled 60-45-BD-DE-D6-1C 0 bps | |
Bluetooth Device (Personal Area Network) Disconnected 60-45-BD-DE-D6-1D 3 Mbps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment