Reading System Info
Powershell

when you need some static data from the system type

[System.Environment] | Get-Member -static

When you are looking for info on the process do as follows:
Get-Process | Select-Object -first 1 | Format-List *

To find the first process in the list

To find all instances of processes that are from microsoft:

Get-Process | Where-Object { $_.company -like 'micro*' } |Format-Table name, description, company

To see only processes and there cpu usage

Get-Process | foreach { $_.ProcessName,$_.CPU}

To see the processes that consume the most cpu
Get-Process | sort-object CPU -Descending | select ProcessName, CPU

The next will show all Processes and sort them by company name:
# PowerShell cmdlet to group Processes by company 
$Path = "C:\Output\ProcessCompany.txt" 
$ProSvc = get-Process |sort company |ft -groupby company  
$ProSvc 
# $ProSvc | out-file $Path

To view all processes and show only CPU handles and name formatted automatically and sorted on CPU
get-process |Sort-object CPU -descending| ft CPU,Handles,Name -auto

Hwen you want to see the memory intensive processes type
Get-Process -Computername server1 | Where-Object {$_.VirtualMemorySize -gt 104857600} | Sort-Object VirtualMemorySize -Descending

When you need information like ipconfig /all and even more you would type:
Get-wmiObject -Computername computername win32_networkadapterconfiguration | ? { $_.IPAddress } | fl *

On Me
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License