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

Neal Cleary 0 Reputation points
2023-07-20T14:51:10.9866667+00:00

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,710 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,446 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Gérald Döserich 765 Reputation points
    2023-07-28T09:29:23.8566667+00:00

    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