HOW TO
This article provides instructions on how to create a CMD file, and utilize the file to automate updates for ArcGIS Enterprise components via Windows Task Scheduler.
Create the CMD file
cd "<ArcGIS Enterprise installation directory>\tools\patchnotification" && call patchnotification.bat <parameters>
Note: For a list of parameters and its functions, see below: -h: Show usage -p <proxy URL>: Proxy URL: http://user:pass@my.proxy.server.com:port -k: Remove proxy settings -s: Show current settings -c: Run in console mode -i <sec> or -i <all>: Install security or all patches -d <download directory>: Patch download parent folder -o <never> or -o <always>: Delete option for patch download child folder.
The following sample script runs the tool in console mode, and installs security patches:
cd "C:\Program Files\ArcGIS\Server\tools\patchnotification" && call patchnotification.bat -c -i sec
Note: The patchnotification.bat file can be used in any ArcGIS Enterprise component machine (ArcGIS Server, Portal for ArcGIS, or ArcGIS Data Store). For single machine deployments, the tool can be used with any of the component's directories.
Create the task in Windows Task Scheduler
The task now displays in Windows Task Scheduler. The image example below displays a task configured to apply ArcGIS Enterprise security patches. The results can be viewed in the Windows Task Scheduler history, and in the ArcGIS Enterprise Patch Notification window.
Get help from ArcGIS experts
Download the Esri Support App