Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell Remoting, Processes, and EXEs

$
0
0

Alright, I borked my Adobe Reader installs throughout the agency by making a mistake with the software deployment. Tried several things and running the cleaner tool from adobe is the only fix I've found. Ran into a Powershell quark that I can't explain. I deployed the cleaner too to all the computer's c:\ drives.

This works:

Powershell
Enter-PSSession# it enters the sessionC:\AdbeArCleaner_v2.exe/silent/product=1Exit

This doesn't work:
Powershell
Invoke-Command-ComputerName$computers-ScriptBlock{C:\AdbeArCleaner_v2.exe/silent/product=1}-AsJob

But, this does:
Powershell
Invoke-Command-ComputerName$computers-ScriptBlock{Start-Process-FilePath"C:\AdbeArCleaner_v2.exe"-ArgumentList"/silent","/product=1"-Wait}-AsJob

So, by process of elimination, I've found out how to do what I need. But, I'm at a total loss as to why. I...

Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>