Created
November 3, 2018 23:53
-
-
Save valorad/5c9189d1845116c4bd28aab3ccd00880 to your computer and use it in GitHub Desktop.
Probe Windows PC Info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$output = "./awesomeLibLaptop.txt" | |
Get-CimInstance -ClassName Win32_Desktop -ComputerName . >> $output | |
Get-CimInstance -ClassName Win32_Desktop -ComputerName . >> $output | |
Get-CimInstance -ClassName Win32_BIOS -ComputerName . >> $output | |
Get-CimInstance -ClassName Win32_Processor -ComputerName . >> $output | |
Get-CimInstance -ClassName Win32_ComputerSystem >> $output | |
Get-CimInstance -ClassName Win32_OperatingSystem -ComputerName . >> $output | |
Get-CimInstance -ClassName Win32_LogicalDisk >> $output | |
Get-CimInstance -ClassName Win32_LogonSession >> $output | |
Get-CimInstance -ClassName Win32_LocalTime >> $output | |
# pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment