Geeks With Blogs
HeroPsycho's House of Phun Phun with tech, politics, music, and more September 2008 Entries
Resulting Script from Last Post
Well, here goes, my first Powershell script that I’m just a slight bit proud of because it’s not lame brain… 1: param( 2: [string[]]$account = @(), 3: [string[]]$computers = @(), 4: [switch]$help 5: ) 6: 7: 8: Get-WmiObject win32_service -ComputerName $computers | where-object {$_.startname -eq "$account"} | sort-object systemname | format-table systemname,displayname,star... | out-host 9: 10: if($help){ 11: @" 12: SYNTAX: 13: get-servicesbylogon.ps1 -account "domain\user" -computers "computer1,computer2" ......

Posted On Monday, September 29, 2008 3:28 AM

Copyright © HeroPsycho | Powered by: GeeksWithBlogs.net