Get Model and Serial Number via PowerShell

CompInfo

A simple script to get some basic server info via PowerShell This script retrieves info from the appropriate WMI class and inserts it into a variable and then outputs it to the host and CompInfo.txt file. Basic Commands: Get-WmiObject -ComputerName localhost -Namespace root\cimv2 -Class Win32_ComputerSystem | Select-Object Model Get-WmiObject -ComputerName localhost -Namespace root\cimv2 -Class Win32_SystemEnclosure … Read more

Capture a Network Trace Without Netmon

If you need to capture a Network Trace from a server or client that doesn’t have Netmon or any other network monitoring software installed, you can use netsh to capture the trace (Windows 7/2008 R2 or higher). Once captured you can then copy it to another “tools” machine with such tools as Netmon or Wireshark … Read more

How to Get Domain Name Using PowerShell

For large Enterprise environments it is common to have 3 separate Domains and SCCM environments. One for DEV, one for UAT testing and then Production. Sometimes it can be helpful when writing scripts to check which environment we are functioning within and then use values for server names or Site Codes based on the environment. … Read more