Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
jrathgebercs
Creator
Creator

Is there any PowerShell or command script to add the Qlik Sense NPrinting Engine?

Hi All,

Is there any PowerShell or command script to add the Qlik Sense NPrinting Engine?

In My organization they are not allowing to enter manual password. So I am looking for script to add the NPrinting engine.

could you please suggest me on this.

Thank you.

Labels (2)
6 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @jrathgebercs 

Sorry there is no API no script to do that and this part of setup is done via NPrinting Admin interface.

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Ruggero_Piccoli
Support
Support

Hi,

The only allowed and supported APIs are the one documented in the help site https://help.qlik.com/en-US/nprinting/February2024/APIs/NP+API/index.html

The only supported method to add an Engine s the one documented https://help.qlik.com/en-US/nprinting/February2024/Content/NPrinting/DeployingQVNprinting/Adding-a-Q...

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
jrathgebercs
Creator
Creator
Author

Hi @Lech_Miszkiewicz & @Ruggero_Piccoli ,

I got this script but i am not sure where we need to execute this. could you please check from your side and suggest.

// Authentication details
 
const username = "admin_username";
 
const password = "admin_password";
 
 
 
// Engine details
 
const engineName = "NewEngine";
 
const machineName = "server_hostname";
 
const domain = "domain_name";
 
const serviceAccount = "domain\service_account";
 
const servicePassword = "service_account_password";
 
 
 
// API endpoint to add a new engine
 
const addEngineUrl = "https://nprinting_server:port/api/v1/engines";
 
 
 
// Send request to add the engine
 
fetch(addEngineUrl, {
 
    method: "POST",
 
    headers: {
 
        "Content-Type": "application/json",
 
        "Authorization": "Basic " + btoa(username + ":" + password)
 
    },
 
    body: JSON.stringify({
 
        "name": engineName,
 
        "hostname": machineName,
 
        "domain": domain,
 
        "serviceAccount": serviceAccount,
 
        "servicePassword": servicePassword
 
    })
 
})
 
.then(response => {
 
    if (response.ok) {
 
        console.log("Engine added successfully!");
 
    } else {
 
        console.error("Error adding engine:", response.statusText);
 
    }
 
})
 
.catch(error => {
 
    console.error("Network error:", error);
 
});
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Where did you get this from? It is not official so I guess you may need to ask the person who gave you that script. It actually looks like halucinating chat GPT 😂🤣 cause such enpoint does not exist (

/api/v1/engines

).

There is engine installation proces during which you need to CREATE certificate password and then there is adding engine in Qlik NPrinting admin console in which you also need to enter via interface the same password. 

At the same time it looks like you still need to enter password there so not sure why dont you do it via interface? 

Obviously when buying / introducing NPrinting to company you would have made educated decision and you would be aware of all unconditional requirements which are listed on https:// help.qlik.com and which explain the process of deploying nprinting. That would have to be considered against all the internal policies so I struggle to understand why are you asked to do something what is not available or supported?

 

There is silent installation of the engine documented: https://help.qlik.com/en-US/nprinting/February2024/Content/NPrinting/DeployingQVNprinting/Installing...

But there is no silent add engine configuration api endpoint and that MUST be done via interface.

cheers

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Ruggero_Piccoli
Support
Support

Hi,

Only procedures documented in the official help site are supported. You do everything else at your own risk.

Best Regards,

Ruggero 



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Frank_S
Support
Support

Qlik has a professional services team, or perhaps reach one of our trusted partners, who can work with you to iterate your requirements with you and develop a solution.

Please reach out to your Qlik Account or Customer Success manager to discuss this option with you. Qlik's PS services, keep in mind, are an optional paid engagement. They have a broad scope of field experience and tools which can be leveraged to iteratively build our your requirements.

Kind regards...

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!