<?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>topic Re: How to Backup NPrinting with Invoke-Command in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2098107#M39620</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The following PowerShell script worked in my installation:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$remoteComputerName = "ServerName"

$backupCommand = {
    # Change directory to the NPrinting Manager folder
    cd "C:\Program Files\NPrintingServer\Tools\Manager\"

    # Execute the backup command
    .\Qlik.Nprinting.Manager.exe backup -f C:\NPrintingBackups\NP_Backup.zip
}

Invoke-Command -ComputerName $remoteComputerName -ScriptBlock {
    param($backupCommand)
    Invoke-Expression $backupCommand
} -ArgumentList $backupCommand&lt;/LI-CODE&gt;
&lt;P&gt;I supply this code as an example without any warranty it will work in your server. I suggest to create a Qlik NPrinting backup and stere it in a safe place before testing the script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 07:01:40 GMT</pubDate>
    <dc:creator>Ruggero_Piccoli</dc:creator>
    <dc:date>2023-07-28T07:01:40Z</dc:date>
    <item>
      <title>How to Backup NPrinting with Invoke-Command</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2097814#M39611</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I want to write the backup nprinting command in the powershell automation script. I need to use the Invoke-Command command. How should I implement it? Here is the command to install NPrinting using Invoke-Command:&lt;/P&gt;
&lt;P&gt;Invoke-Command -ScriptBlock {Start-Process -FilePath "C:\QlikNPrintingServer_x64.exe" -Verb RunAs -ArgumentList "/install /passive accept-eula=1 admin-username=$user admin-password=12345678 admin-email=npadmin@email.com service-username=$hostname\$user service-password=$qPwd database-password=12345678 /log C:\server.log" -Wait -PassThru}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 10:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2097814#M39611</guid>
      <dc:creator>Gin009</dc:creator>
      <dc:date>2023-07-27T10:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Backup NPrinting with Invoke-Command</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2097896#M39612</link>
      <description>&lt;P&gt;I dont know anything about "Invoke-Commands" so I can only relate to batch scripts currently available and working and supported...&lt;/P&gt;
&lt;P&gt;All I know is that NPrinting backup needs to run command:&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"C:\Program Files\NPrintingServer\Tools\Manager\Qlik.Nprinting.Manager.exe" with parameters. I am attaching batch file which I typically schedule to run locally on NPrinting machine. There are parameters you need to provide in it but those are straight forward.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Jul 2023 13:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2097896#M39612</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2023-07-27T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Backup NPrinting with Invoke-Command</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2097897#M39613</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/201773"&gt;@Gin009&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;First you do not need a password for current supported versions of NPrinting.&lt;/P&gt;
&lt;P&gt;Also I recommend that you use the available default supported backup scripting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this and other backup and restore information see:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-BackUp-and-Restore-Qlik-NPrinting-Repository-Database/ta-p/1715863" target="_blank"&gt;How to BackUp and Restore Qlik NPrinting Repositor... - Qlik Community - 1715863&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards...&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 13:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2097897#M39613</guid>
      <dc:creator>Frank_S</dc:creator>
      <dc:date>2023-07-27T13:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Backup NPrinting with Invoke-Command</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2098107#M39620</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The following PowerShell script worked in my installation:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$remoteComputerName = "ServerName"

$backupCommand = {
    # Change directory to the NPrinting Manager folder
    cd "C:\Program Files\NPrintingServer\Tools\Manager\"

    # Execute the backup command
    .\Qlik.Nprinting.Manager.exe backup -f C:\NPrintingBackups\NP_Backup.zip
}

Invoke-Command -ComputerName $remoteComputerName -ScriptBlock {
    param($backupCommand)
    Invoke-Expression $backupCommand
} -ArgumentList $backupCommand&lt;/LI-CODE&gt;
&lt;P&gt;I supply this code as an example without any warranty it will work in your server. I suggest to create a Qlik NPrinting backup and stere it in a safe place before testing the script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 07:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2098107#M39620</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2023-07-28T07:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Backup NPrinting with Invoke-Command</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2098110#M39621</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; it work&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 07:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2098110#M39621</guid>
      <dc:creator>Gin009</dc:creator>
      <dc:date>2023-07-28T07:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Backup NPrinting with Invoke-Command</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2098111#M39622</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48712"&gt;@Frank_S&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks for your support, a solution has been found&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 07:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2098111#M39622</guid>
      <dc:creator>Gin009</dc:creator>
      <dc:date>2023-07-28T07:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to Backup NPrinting with Invoke-Command</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2098113#M39623</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Thanks for your support, a solution has been found&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 07:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-Backup-NPrinting-with-Invoke-Command/m-p/2098113#M39623</guid>
      <dc:creator>Gin009</dc:creator>
      <dc:date>2023-07-28T07:25:56Z</dc:date>
    </item>
  </channel>
</rss>

