Created
July 14, 2023 17:05
-
-
Save grafst/54cbb0be73421a054919ae92f201acf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Disable-PrinterInstallation { | |
New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name NoAddPrinter -Value 1 -Type DWORD | |
} | |
Function Enable-PrinterInstallation { | |
New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name NoAddPrinter -Value 0 -Type DWORD | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment