Advertisement
gokeefe

Untitled

Mar 24th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Param(
  2.     [String[]]$ComputerName=$Env:ComputerName
  3. )
  4.  
  5. Begin {}
  6.  
  7. Process {
  8.     Foreach ($item in $ComputerName) {
  9.         Get-WmiObject -ComputerName $item -Class Win32_Desktop | Select-Object Name
  10.     }
  11. }
  12.  
  13. End {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement