Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($line in Get-Content .\comps.txt) {
- if($line -match $regex){
- "Computer $line">>"t.txt"
- Get-CimInstance win32_physicalmemory | Format-Table Manufacturer,Banklabel,Configuredclockspeed,Devicelocator,Capacity,Serialnumber -autosize >> "t.txt"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement