Get-Process | Sort-Object PM –descending | Select-Object Name,PM
Get-EventLog | Where-Object {$_.EntryType -eq 'Error'}
Get-WmiObject Win32_OperatingSystem -computerName PC01
Get-WmiObject Win32_OperatingSystem -computerName PC01 | Get-Member
(Get-WmiObject Win32_OperatingSystem -computerName PC01).caption
Function SO($computer){return (Get-WmiObject Win32_OperatingSystem -computerName $computer).caption}
30000,56798,12432 | foreach {$_/1024}
Para crear función global para todos los ambitos, por si la metemos dentro de un script y luego queremos tenerla disponible en la consola, por ejemplo:
Function global:SO($computer){return (Get-WmiObject Win32_OperatingSystem -computerName $computer).caption}