Advertisement
theo_manta

Untitled

Nov 12th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
REG 0.18 KB | None | 0 0
  1. $var = Get-WmiObject Win32_PNPEntity | Where-Object{$_.ConfigManagerErrorCode -ne 0}| Select DeviceID | Out-String
  2.  
  3. ForEach ($line in $($var -split "`r`n"))
  4. {
  5.     Write-host $line
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement