PowershellExcercises/1 - Basics/display-system-info/display-system-info.ps1

4 lines
No EOL
275 B
PowerShell

# Calling 'Get-ComputerInfo' method to return all computer information.
Get-ComputerInfo |
# Calling 'Select-Object' method to filter results through '-Property' parameters.
Select-Object -Property WindowsProductName, OSDisplayVersion, CsProcessors, OsTotalVisibleMemorySize