February 14, 2011
$ServiceList = Get-Service | Select-Object Name foreach ($item in $ServiceList) { $checkedlistbox1.Items.Add($item.Name) }
Or:
Get-Service | Select-Object Name | % { $checkedlistbox1.Items.Add($_.name) }
Subscribe to:
Post Comments (Atom)
Tags
Links
About Me
- Catherina
- I took the PowerShell Master Class for Thomas Lee in Stockholm in march 2010.
0 kommentarer:
Post a Comment