<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article How to configure Windows Task Scheduler for PAReplicate in PAM Self-Hosted Articles</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-configure-windows-task-scheduler-for-pareplicate/ta-p/1428062</link>
    <description>&lt;P&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 14px;white-space: normal;background-color: #ffffff;float: none;display: inline;"&gt;This is a Community user generated knowledge article authored by &lt;/SPAN&gt;&lt;A href="https://community.cyberark.com/s/profile/0052J000009lPh5" target="_self"&gt;Antonino Bambino&lt;/A&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 14px;white-space: normal;background-color: #ffffff;float: none;display: inline;"&gt; at ion group. You can view &lt;/SPAN&gt;&lt;A href="https://www.testerlab.it/" target="_blank"&gt;Antonino's&amp;nbsp;blog here&lt;/A&gt; where&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 14px;white-space: normal;background-color: #ffffff;float: none;display: inline;"&gt; he posts similar articles to help his CyberArk peers.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Backup is part of the security policies and it is essential that it is performed and monitored to always maintain an offline copy of the data.&lt;BR /&gt;&lt;BR /&gt;This article focuses on some points regarding configuring the backup schedule using Windows Task Scheduler and complements the article &lt;A href="https://community.cyberark.com/s/article/PAReplicate-Configuration-and-Usage" target="_blank"&gt;PAReplicate Configuration and Usage&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;N&lt;B&gt;ote&lt;/B&gt;: &lt;/STRONG&gt;Some configurations may vary based on the security policies applied and based on the Operating System.&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Based on company policy, different users may be used to execute the scheduled task and it will be possible to choose whether to execute the task on one of the PAM infrastructure servers (for example a PVWA) or on an external server. The choice of which server to use may depend on various factors such as company policies, network configurations, resource availability, etc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Some of the more commonly used solutions will be examined below.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;For account scheduling you can use:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;&lt;LI class="MsoNoSpacing" style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;NT AUTHORITY\SYSTEM&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="MsoNoSpacing" style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;Local\Domain Account&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="MsoNoSpacing" style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;MSA &lt;STRONG&gt;or gMSA &lt;/STRONG&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;What are the differences between the three account types?&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;STRONG&gt;NT AUTHORITY\SYSTEM&lt;/STRONG&gt; is a local Built-In account with administrative privileges whose password is managed by the operating system.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;STRONG&gt;Local\Domain Accounts&lt;/STRONG&gt; are accounts (local or domain) whose password will need to be managed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;STRONG&gt;MSA&amp;nbsp;or gMSA &lt;/STRONG&gt; is a domain service account that can be configured to use for a single server. The password is automatically managed at domain level.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;Attention&lt;/B&gt;: the local\domain account and MSA must be placed in the &lt;EM&gt;local Administrators group&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;NT AUTHORITY\System or Local\Domain Account:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;For an NT AUTHORITY\System or Local\Domain Account it is possible to create the scheduled task directly from the Windows Schedule Task graphical interface.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;1.Create a new task, name it, and set the Built-In SYSTEM account or similar local\domain account to perform the backup in the General tab:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXf.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98865iA534AFA3588ED6E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXf.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Within the 'Triggers' tab create a new schedule for the task based on your current needs. Here we have a it set to run weekly on Sunday:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="text-align: center;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077y7d.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98880i4169939E59DF3508/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077y7d.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077y7d.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="text-align: center;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;3. On the Actions tab create&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri, sans-serif;font-size: 11pt;background-color: var(--slds-g-color-surface-container-1, var(--lwc-colorbackgroundalt, #fff));color: var(--slds-g-color-neutral-base-10, #181818);"&gt;'New Actions'&amp;nbsp; and set the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="padding-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;B&gt;Program/script&lt;/B&gt;: "C:\Program Files (x86)\PrivateArk\Replicate\PAReplicate.exe"&amp;nbsp; (with double quotes)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;B&gt;Add arguments&lt;/B&gt;: Vault.ini /LOGONFROMFILE backup.cred /FULLBACKUP&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;B&gt;Start in&lt;/B&gt;: C:\Program Files (x86)\PrivateArk\Replicate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXg.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98866iBB9EE375FD69F312/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXg.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Press 'OK' and your task should be setup.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;MSA or gMSA Account:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;For MSA or gMSA accounts it is necessary to create the scheduled task from PowerShell.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;Note&lt;/B&gt;: Creating the MSA or gMSA account requires the use of elevated credentials and Active Directory information. For more information about MSA please refer to Microsoft documentations.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;In the following example we will create a gMSA and schedule the task on a server:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;# Account creation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;# Domain Name: cyberark.local&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;# Server Name: SRV-01&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;# gMSA: gMSAbck-SRV-01&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;:&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;New-ADServiceAccount -Name gMSAbck-SRV-01 -Path "CN = Managed Service Accounts, DC=cyberark, DC=local" -DNSHostName gMSAbck-SRV-01.cyberark.local&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Set-ADServiceAccount -Identity gMSAbck-SRV-01 -PrincipalsAllowedToRetrieveManagedPassword SRV-01$&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Install-ADServiceAccount -Identity gMSAbck-SRV-01&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;# Creation and scheduling backup jobs&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;$sta = New-ScheduledTaskAction -Execute "C:\Program Files (x86)\PrivateArk\Replicate\PAReplicate.exe"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Argument "Vault.ini /LOGONFROMFILE backup.cred /FULLBACKUP" -WorkingDirectory "C:\Program Files (x86)\PrivateArk\Replicate"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;$stt = New-ScheduledTaskTrigger -Weekly -DaysOfWeek Saturday -At "05/11/2024 10:00PM"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;$stp = New-ScheduledTaskPrincipal -UserID CYBERARK\MSAbck-SRV-01$ -LogonType Password&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;$sts = New-ScheduledTaskSettingsSet -ExecutionTimeLimit (New-TimeSpan -Hours 12)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Register-ScheduledTask "CyberArk Vault Full Backup" -Action $sta -Settings $sts -Trigger $stt -Principal $stp&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXh.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98867iDE2F6A03FEF4B2F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXh.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXi.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98868iB6A5660BF01E189D/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXi.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;Interaction between Group Policy and Task scheduling&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Execution of the scheduled task may not work due to security restrictions imposed through a Group Policy.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;For example, if the backup is scheduled in the PVWA server it is necessary to add the MSA account into the Security Policy Setting “Log on as a service”:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXj.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98869iD91E66A352BEDF03/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXj.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXk.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98870iA1605E4FDE6CC2E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXk.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXk.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Apr 2025 12:52:02 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2025-04-02T12:52:02Z</dc:date>
    <item>
      <title>How to configure Windows Task Scheduler for PAReplicate</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-configure-windows-task-scheduler-for-pareplicate/ta-p/1428062</link>
      <description>&lt;P&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 14px;white-space: normal;background-color: #ffffff;float: none;display: inline;"&gt;This is a Community user generated knowledge article authored by &lt;/SPAN&gt;&lt;A href="https://community.cyberark.com/s/profile/0052J000009lPh5" target="_self"&gt;Antonino Bambino&lt;/A&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 14px;white-space: normal;background-color: #ffffff;float: none;display: inline;"&gt; at ion group. You can view &lt;/SPAN&gt;&lt;A href="https://www.testerlab.it/" target="_blank"&gt;Antonino's&amp;nbsp;blog here&lt;/A&gt; where&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 14px;white-space: normal;background-color: #ffffff;float: none;display: inline;"&gt; he posts similar articles to help his CyberArk peers.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Backup is part of the security policies and it is essential that it is performed and monitored to always maintain an offline copy of the data.&lt;BR /&gt;&lt;BR /&gt;This article focuses on some points regarding configuring the backup schedule using Windows Task Scheduler and complements the article &lt;A href="https://community.cyberark.com/s/article/PAReplicate-Configuration-and-Usage" target="_blank"&gt;PAReplicate Configuration and Usage&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;N&lt;B&gt;ote&lt;/B&gt;: &lt;/STRONG&gt;Some configurations may vary based on the security policies applied and based on the Operating System.&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Based on company policy, different users may be used to execute the scheduled task and it will be possible to choose whether to execute the task on one of the PAM infrastructure servers (for example a PVWA) or on an external server. The choice of which server to use may depend on various factors such as company policies, network configurations, resource availability, etc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Some of the more commonly used solutions will be examined below.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;For account scheduling you can use:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;&lt;LI class="MsoNoSpacing" style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;NT AUTHORITY\SYSTEM&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="MsoNoSpacing" style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;Local\Domain Account&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="MsoNoSpacing" style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;MSA &lt;STRONG&gt;or gMSA &lt;/STRONG&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;What are the differences between the three account types?&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;STRONG&gt;NT AUTHORITY\SYSTEM&lt;/STRONG&gt; is a local Built-In account with administrative privileges whose password is managed by the operating system.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;STRONG&gt;Local\Domain Accounts&lt;/STRONG&gt; are accounts (local or domain) whose password will need to be managed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;STRONG&gt;MSA&amp;nbsp;or gMSA &lt;/STRONG&gt; is a domain service account that can be configured to use for a single server. The password is automatically managed at domain level.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;Attention&lt;/B&gt;: the local\domain account and MSA must be placed in the &lt;EM&gt;local Administrators group&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;NT AUTHORITY\System or Local\Domain Account:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;For an NT AUTHORITY\System or Local\Domain Account it is possible to create the scheduled task directly from the Windows Schedule Task graphical interface.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;1.Create a new task, name it, and set the Built-In SYSTEM account or similar local\domain account to perform the backup in the General tab:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXf.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98865iA534AFA3588ED6E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXf.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Within the 'Triggers' tab create a new schedule for the task based on your current needs. Here we have a it set to run weekly on Sunday:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="text-align: center;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077y7d.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98880i4169939E59DF3508/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077y7d.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077y7d.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="text-align: center;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;3. On the Actions tab create&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri, sans-serif;font-size: 11pt;background-color: var(--slds-g-color-surface-container-1, var(--lwc-colorbackgroundalt, #fff));color: var(--slds-g-color-neutral-base-10, #181818);"&gt;'New Actions'&amp;nbsp; and set the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="padding-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;B&gt;Program/script&lt;/B&gt;: "C:\Program Files (x86)\PrivateArk\Replicate\PAReplicate.exe"&amp;nbsp; (with double quotes)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;B&gt;Add arguments&lt;/B&gt;: Vault.ini /LOGONFROMFILE backup.cred /FULLBACKUP&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;B&gt;Start in&lt;/B&gt;: C:\Program Files (x86)\PrivateArk\Replicate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXg.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98866iBB9EE375FD69F312/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXg.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Press 'OK' and your task should be setup.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;MSA or gMSA Account:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;For MSA or gMSA accounts it is necessary to create the scheduled task from PowerShell.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;Note&lt;/B&gt;: Creating the MSA or gMSA account requires the use of elevated credentials and Active Directory information. For more information about MSA please refer to Microsoft documentations.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;In the following example we will create a gMSA and schedule the task on a server:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;# Account creation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;# Domain Name: cyberark.local&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;# Server Name: SRV-01&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;# gMSA: gMSAbck-SRV-01&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;:&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;New-ADServiceAccount -Name gMSAbck-SRV-01 -Path "CN = Managed Service Accounts, DC=cyberark, DC=local" -DNSHostName gMSAbck-SRV-01.cyberark.local&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Set-ADServiceAccount -Identity gMSAbck-SRV-01 -PrincipalsAllowedToRetrieveManagedPassword SRV-01$&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Install-ADServiceAccount -Identity gMSAbck-SRV-01&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;# Creation and scheduling backup jobs&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;$sta = New-ScheduledTaskAction -Execute "C:\Program Files (x86)\PrivateArk\Replicate\PAReplicate.exe"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Argument "Vault.ini /LOGONFROMFILE backup.cred /FULLBACKUP" -WorkingDirectory "C:\Program Files (x86)\PrivateArk\Replicate"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;$stt = New-ScheduledTaskTrigger -Weekly -DaysOfWeek Saturday -At "05/11/2024 10:00PM"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;$stp = New-ScheduledTaskPrincipal -UserID CYBERARK\MSAbck-SRV-01$ -LogonType Password&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;$sts = New-ScheduledTaskSettingsSet -ExecutionTimeLimit (New-TimeSpan -Hours 12)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Register-ScheduledTask "CyberArk Vault Full Backup" -Action $sta -Settings $sts -Trigger $stt -Principal $stp&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXh.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98867iDE2F6A03FEF4B2F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXh.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXi.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98868iB6A5660BF01E189D/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXi.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;B&gt;Interaction between Group Policy and Task scheduling&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Execution of the scheduled task may not work due to security restrictions imposed through a Group Policy.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;For example, if the backup is scheduled in the PVWA server it is necessary to add the MSA account into the Security Policy Setting “Log on as a service”:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXj.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98869iD91E66A352BEDF03/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXj.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="line-height: 107%;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXk.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98870iA1605E4FDE6CC2E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXk.png" alt="ka3Vy000005KNdVIAW__eid=ka3Vy000005KNdV&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt0000077oXk.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 12:52:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-configure-windows-task-scheduler-for-pareplicate/ta-p/1428062</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-04-02T12:52:02Z</dc:date>
    </item>
  </channel>
</rss>

