Using Powershell to run a program Uninstall and Installs Remotely
Posted on 2016-08-31
We have recently taken over a small company who's network is a bit of a mess. I need to uninstall an old AV program and install a update one. They do not have SCCM or another or remote software deployment total. I did create a series of batch files to run as a startup script as to run under the local system account BUT requires a system reboot in order to take effect. My next though was to see if I can enable WinRM in the domain so I can excute all commads via powershell.
Here is what I am thinking
1) Get a list of all devices into a text file
2) Create a powershell script that will uninstall the first program but not continue until the uninstall completes. It will then check for the presence of a folder path and if so run a specific program, if it is not present continue on with the next program and old this complete will then install the 3 and file program. Also need some way to know if a step failed or not
I would like to be able to use powershell to run this script agaist select devices at will. My problem is that I an not that strong with powershell yet.