create IPP printer with username and password with Powershell or script

Abendroth, Philipp 0 Reputation points
2025-08-14T08:08:56.3866667+00:00

Hi To all,

i#m searching for a capability to add IPP printer(s) with an authentication on Windows Server or Client operating systems.

I already got a powershell script running to add a IPP printer with IPPS port, but did not get the checkbox activated. i need to do this after the creation, mean manual: open the IPP printer port and select the check box "use the same security setting for all users"
image

I mean this settings in the IPP printer port... it is mandatory the authentication, because the print jobs i send over the internet/cloud and must be secured.
if this checkbox is not active, the print jobs from different windows users are not printed, there is just a message in the eventview, user is not allowed to print... if the checkbox is active, the printing works perfect.

is there a command, powershell or registry to activate this?

THanks!

Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Harry Phan 1,225 Reputation points Independent Advisor
    2025-08-18T07:59:19.4466667+00:00

    Dear Abendroth, Philipp,

    Based on your description, you're successfully adding the IPP printer using PowerShell, but require assistance in programmatically enabling the “Use the same security settings for all users” checkbox within the IPP port configuration. This setting is critical for ensuring authenticated printing across multiple Windows user sessions.

    As of now, Windows does not expose a direct PowerShell cmdlet or registry key to toggle this specific checkbox programmatically. The IPP port configuration UI is managed by the Print Spooler service and its associated COM interfaces, which do not currently support automation of this setting.

    While there is no native command to enable the checkbox directly, here are some suggestions:

    1. Use Group Policy or Print Management for Centralized Control Deploy printers via Group Policy Preferences or Print Management Console to enforce consistent settings. Ensure the IPPS port is configured with a valid certificate and authentication is required.
    2. Use Third-Party Print Management Tools Solutions like PaperCut NG/MF or Gespage offer enhanced control over IPPS printers, including authentication enforcement and queue management2.
    3. Manual Configuration Post-Deployment After adding the printer via PowerShell, manually open the Printer Properties > Ports > Configure Port dialog. Enable the checkbox: “Use the same security settings for all users”. This step ensures that all users share the same authentication context, resolving the issue where jobs fail due to user-specific restrictions.

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated. Best regards,

    Harry Phan

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.