Created
November 2, 2023 13:59
-
-
Save Dimtemp/11b450b76fb37908a37c0c34c54bc0b0 to your computer and use it in GitHub Desktop.
Inventory oneliner
This file contains hidden or 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
Get-Content pcs.txt | foreach { Write-Host $_ -f Green; $pc=$_; Get-Content wmi.txt | foreach { Get-WmiObject $_ -ComputerName $pc } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment