In the code below I can copy the Google Drive client to a remote computer and silently install it. I know it’s not much, but its the coolest thing I have created with PowerShell and I am kind of proud of it. Anyway, what can I do to see if the command succeeded or not? I work at a school and I might use this to target all teacher computers or a specific computer lab.
How would check on your local pc if a certain program is installed? The same cmdlets usually support the option ‘-ComputerName’.
You could try something like this: