Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Param(
- [String[]]$ComputerName=$Env:ComputerName
- )
- Begin {}
- Process {
- Foreach ($item in $ComputerName) {
- Get-WmiObject -ComputerName $item -Class Win32_Desktop | Select-Object Name
- }
- }
- End {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement