Kaseya Script To Run Patch My PC
Kaseya does an okay job to deploy software patches but we we decided it was best to create a Kaseya Script To Run Patch My PC.
This simple script grabs the latest Patch My PC from the developers website and places it into the kworking folder on the users workstation or server. The software has a string parameter to run as the System User to scan the entire system for installed apps and afterwards it will install the latest software Patch silently.
To automatically deploy this script on a scheduled basis, within Kaseya we used Policy Management and configured a new Scheduled policy to run this Patch my PC script every week.
Below you can see the Kaseya Script to run the Patch My PC. I also provided the download link for it.
<?xml version="1.0" encoding="utf-8"?> <ScriptExport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.kaseya.com/vsa/2008/12/Scripting"> <Procedure name="Patch My PC" treePres="3" id="136611930" folderId="980255113206922" treeFullPath="myProcedures - [email protected] - pdomingues"> <Body description=""> <If description=""> <Condition name="True" /> <Then> <Statement name="WriteScriptLogEntry" continueOnFail="false"> <Parameter xsi:type="StringParameter" name="Comment" value="Running Patch My PC" /> </Statement> <Statement name="GetURL" continueOnFail="false"> <Parameter xsi:type="StringParameter" name="URL" value="https://patchmypc.com/freeupdater/PatchMyPC.exe" /> <Parameter xsi:type="StringParameter" name="ResponseFileName" value="#vAgentconfiguration.AgentTempDir#\PatchMyPC.exe" /> <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" /> </Statement> <Statement name="ExecuteShellCommand" continueOnFail="false"> <Parameter xsi:type="StringParameter" name="Command" value="#vAgentconfiguration.AgentTempDir#\PatchMyPC.exe /S" /> <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" /> <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" /> </Statement> <Statement name="WriteScriptLogEntry" continueOnFail="false"> <Parameter xsi:type="StringParameter" name="Comment" value="Successfully Updated Software" /> </Statement> </Then> </If> </Body> </Procedure> </ScriptExport>
Patch My PC Kaseya Script
- Automating System Updates with Unattended-Upgrades on Ubuntu
- How to Add a Large Disk Partition as Storage in Proxmox VE
- How to Remove Radmin Viewer with PowerShell
- How to Automate Ubuntu Server System Updates and Package Installation
- Introducing Zevonix: Your Pathway to Smarter IT
Discover more from Patrick Domingues
Subscribe to get the latest posts sent to your email.