<?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 run PARClient from a batch script? in PAM Self-Hosted Articles</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-run-parclient-from-a-batch-script/ta-p/1428945</link>
    <description>How to run PARClient from a batch file?

&lt;H3&gt;Steps&lt;/H3&gt;
Use an encrypted password file and the /C option to specify the command to run.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;EM&gt;parclient &amp;lt;Vault IP Address&amp;gt; /UsePassFile &amp;lt;file name&amp;gt; /c "ServiceStatus /ServiceName \"PrivateArk Server\"&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Note 1:&lt;BR /&gt;The command in the above example will work only if the "PrivateArk Server" service is specified in the PARAgent.ini file (located in the Vault server under folder: "\Program Files\PrivateArk\Server") as an allowed monitored service:&lt;BR /&gt;&lt;EM&gt;AllowedMonitoredServices="PrivateArk Server"\&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="white-space-collapse: preserve;"&gt;Note 2:&lt;/SPAN&gt;&lt;BR /&gt;If the command sent to the PARClient has a parameter which contains a space character, then backslash+quotes (\") should be used instead of just quotes ("):&lt;BR /&gt;&lt;EM&gt;.../c "ServiceStatus /ServiceName \"PrivateArk Server\""&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;This is because the command and its parameters are sent inside a string recognized by quotes.

&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;&lt;SPAN style="font-weight: bold;text-decoration: underline;"&gt;Q:&lt;/SPAN&gt;&lt;BR /&gt;How to run PARClient from a batch file?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: bold;text-decoration: underline;"&gt;A:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier,Monospace;"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;Use an encrypted password file and the /C option to specify the command to run.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;/SPAN&gt;parclient &amp;lt;Vault IP Address&amp;gt; /UsePassFile &amp;lt;file name&amp;gt; &lt;SPAN style="font-weight: bold;"&gt;/c "ServiceStatus /ServiceName \"PrivateArk Server\""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;&lt;SPAN style="font-weight: bold;"&gt;Note 1:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;The command in the above example will work only if the "PrivateArk Server" service is specified &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;in the PARAgent.ini file (located in the Vault server under folder: "\Program Files\PrivateArk\Server") as an allowed &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;monitored &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;service: &lt;SPAN style="font-family: Courier,Monospace;"&gt;AllowedMonitoredServices="PrivateArk Server"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: bold;"&gt;Note 2:&lt;/SPAN&gt;&lt;BR /&gt;If the command sent to the PARClient has a parameter which contains a space character, then &lt;SPAN style="font-family: Courier,Monospace;"&gt;backslash+quotes (\")&lt;/SPAN&gt; should be used instead of &lt;SPAN style="font-family: Courier,Monospace;"&gt;just quotes (")&lt;/SPAN&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2" style="font-weight: bold;"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;&lt;SPAN style="font-family: Courier,Monospace;"&gt;.../c "ServiceStatus /ServiceName &lt;SPAN style="color: rgb(255, 0, 0);"&gt;\"&lt;/SPAN&gt;PrivateArk Server&lt;SPAN style="color: rgb(255, 0, 0);"&gt;\"&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;This is because the command and its parameters are sent inside a string recognized by quotes.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;</description>
    <pubDate>Wed, 12 Apr 2023 04:23:32 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2023-04-12T04:23:32Z</dc:date>
    <item>
      <title>How to run PARClient from a batch script?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-run-parclient-from-a-batch-script/ta-p/1428945</link>
      <description>How to run PARClient from a batch file?

&lt;H3&gt;Steps&lt;/H3&gt;
Use an encrypted password file and the /C option to specify the command to run.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;EM&gt;parclient &amp;lt;Vault IP Address&amp;gt; /UsePassFile &amp;lt;file name&amp;gt; /c "ServiceStatus /ServiceName \"PrivateArk Server\"&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Note 1:&lt;BR /&gt;The command in the above example will work only if the "PrivateArk Server" service is specified in the PARAgent.ini file (located in the Vault server under folder: "\Program Files\PrivateArk\Server") as an allowed monitored service:&lt;BR /&gt;&lt;EM&gt;AllowedMonitoredServices="PrivateArk Server"\&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="white-space-collapse: preserve;"&gt;Note 2:&lt;/SPAN&gt;&lt;BR /&gt;If the command sent to the PARClient has a parameter which contains a space character, then backslash+quotes (\") should be used instead of just quotes ("):&lt;BR /&gt;&lt;EM&gt;.../c "ServiceStatus /ServiceName \"PrivateArk Server\""&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;This is because the command and its parameters are sent inside a string recognized by quotes.

&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;&lt;SPAN style="font-weight: bold;text-decoration: underline;"&gt;Q:&lt;/SPAN&gt;&lt;BR /&gt;How to run PARClient from a batch file?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: bold;text-decoration: underline;"&gt;A:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Courier,Monospace;"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;Use an encrypted password file and the /C option to specify the command to run.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;/SPAN&gt;parclient &amp;lt;Vault IP Address&amp;gt; /UsePassFile &amp;lt;file name&amp;gt; &lt;SPAN style="font-weight: bold;"&gt;/c "ServiceStatus /ServiceName \"PrivateArk Server\""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;&lt;SPAN style="font-weight: bold;"&gt;Note 1:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;The command in the above example will work only if the "PrivateArk Server" service is specified &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;in the PARAgent.ini file (located in the Vault server under folder: "\Program Files\PrivateArk\Server") as an allowed &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;monitored &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;service: &lt;SPAN style="font-family: Courier,Monospace;"&gt;AllowedMonitoredServices="PrivateArk Server"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: bold;"&gt;Note 2:&lt;/SPAN&gt;&lt;BR /&gt;If the command sent to the PARClient has a parameter which contains a space character, then &lt;SPAN style="font-family: Courier,Monospace;"&gt;backslash+quotes (\")&lt;/SPAN&gt; should be used instead of &lt;SPAN style="font-family: Courier,Monospace;"&gt;just quotes (")&lt;/SPAN&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2" style="font-weight: bold;"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;&lt;SPAN style="font-family: Courier,Monospace;"&gt;.../c "ServiceStatus /ServiceName &lt;SPAN style="color: rgb(255, 0, 0);"&gt;\"&lt;/SPAN&gt;PrivateArk Server&lt;SPAN style="color: rgb(255, 0, 0);"&gt;\"&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;SPAN style="font-family: Verdana,Helvetica,Sans-Serif;"&gt;This is because the command and its parameters are sent inside a string recognized by quotes.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 12 Apr 2023 04:23:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/how-to-run-parclient-from-a-batch-script/ta-p/1428945</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2023-04-12T04:23:32Z</dc:date>
    </item>
  </channel>
</rss>

