How does PowerShell Print functions Id users on a computer. how does it handle printer expliot issues?

Neal Cleary 0 Reputation points

So I have about 100 shared computers on a domain each with 5 active users, we are moving from prntserver01 to 02. Maybe user 1 uses printer 1,2,5 ,and user 2 uses 1,2,4, user 3 uses 1,3,4,5. etc. I Have found PowerShell commands, I can add a printer to that computer, but How do I add it to the user? also, how does PowerShell handle the printer exploit fix?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,633 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,986 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
1,859 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Gérald Döserich 760 Reputation points

    Why not use GPO and Printer Restrictions?

    Otherwise use a logon script in user context to add the printer to the user.

    0 comments No comments