Posted On March 31, 2019

Quick 1-liner: get system model number

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Quick 1-liner: get system model number
# the 1-liner
wmic computersystem get model,name,manufacturer,systemtype

# Get RAM DIMM Slots
wmic memorychip get Capacity /format:list

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Remove an A-Host Record within Active Directory Integrated DNS Domain

Warning: this code is NOT 'production ready'. Please review and test on DEV environments carefully…

PowerShell: Get LastLogon Information of Computer Objects

$computernames=@( 'COMPUTER1', 'COMPUTER2' ) $computerLastLogon=foreach($computerName in $computernames){ get-adcomputer $computerName -Properties LastLogon|select Name,@{Name='LastLogon';e={[DateTime]::FromFileTime($_.LastLogon)}} } $computerLastLogon|sort -Property…

PowerShell: Use Regex to Select IPv4 Patterns

# This example shows how to obtain ip address of the $env:logonserver$logonServerIP=nltest /DSGETDC:$regexIP = [regex]…
Other project: DragonCoin.com