Removeprintersatlogoff

You have three primary ways to deploy this setting, depending on your infrastructure.

# Set-RemovePrintersAtLogoff.ps1 $path = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Windows" $name = "RemovePrintersAtLogoff" $value = "1" removeprintersatlogoff

Navigate to the path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider . Right-click and select . Name it RemovePrintersAtLogoff . You have three primary ways to deploy this

Log in as a test user. Open regedit and browse to: HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Verify that RemovePrintersAtLogoff exists and has a value of 1 . removeprintersatlogoff

This is a Computer policy, not a User policy. It affects all users logging into that machine. If you need per-user control, you must use the registry method via user logon script.

if (!(Test-Path $path)) Out-Null