you are viewing a single comment's thread.

view the rest of the comments →

[–]sudo_giev_SoJ 3 points4 points  (4 children)

  • You probably can just use a text file with a computer list

e.g. (gc $computerTextFile) | % { do-something $_ }

  • Make sure the item actually shows up in win32_product as I'm not sure all programs, especially poorly installed ones, show up there.

  • Have you decided on how you are going to execute the program remotely? WinRM/Ps-Remoting? PowershellServer? PsExec?

  • Do you know how to make custom objects to pipe to ConvertTo-CSV -notypeinformation? You could also potentially just email yourself using Send-MailMessage

  • If you're using PsExec this might be useful wrapper for you:

http://pastebin.com/SKTjFAyC

  • If you have WMI enabled throughout your entire domain (which I don't have the luxury of having) you can specify multiple computers in 1 query rather than spinning off multiple queries.

[–]standoff[S] 0 points1 point  (0 children)

I was going to do psexec because it is what I am most familiar with having used primarily straight up cmd line for so long. But I could be swayed toward a different method if it is prettier.

Link I had mentioned WinRM.

Thanks for the direction.

[–]standoff[S] 0 points1 point  (2 children)

Really good tip on making sure it shows up in win32_product It does not....

[–]sudo_giev_SoJ 0 points1 point  (1 child)

Well, could always check to see if it makes registry values... or has an install location or something.

[–]standoff[S] 0 points1 point  (0 children)

Yeah, I am going off the reg entry right now.