添加(Add)和删除设备或打印机选项在控制面板(Control Panel)中可用。这些选项适用于所有用户。但是,如果管理员需要,他可以删除本地用户对这些选项的访问权。本文将指导您如何防止用户(how to prevent users from deleting printers)在 Windows 11/10 中删除打印机。
阻止用户在Windows 11/10
使用注册表编辑器
我们将向您展示禁用“删除设备(Remove Device)”选项的方法是使用注册表编辑器(Registry Editor)。要使用 regedit,您必须以管理员身份登录Windows计算机。(Windows)
请按照下列步骤操作:
按Windows + R键启动“运行”(Run)对话框。键入regedit
并单击确定。
(Click Yes)在UAC(用户帐户控制(User Account Control))窗口中单击是。
复制以下路径,将其粘贴到注册表编辑器(Registry Editor)的地址栏中,然后按Enter。如果需要,您也可以手动转到路径。
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
现在,您必须在Explorer子项中创建一个新值。
为此,请选择资源管理器(Explorer)键,右键单击界面右侧,然后转到“New > DWORD(32 位)值(Value)”。
将新创建的值命名为NoDeletePrinter。 双击(Double)NoDeletePrinter并将其值设置为1。
关闭注册表编辑器。
使用组策略编辑器
组策略编辑器(Group Policy Editor)功能已经存在于Windows 11/10企业版(Enterprise)和专业(Pro)版中。如果您使用的是其家庭(Home)版,请先add Group Policy Editor to Windows 11/10 Home edition,然后只有您才能使用此选项。完成后,请按照下列步骤操作:
- 打开组策略编辑器
- 访问打印机(Printers)文件夹
- 打开防止删除打印机(Prevent deletion of printers)设置
- 选择启用(Enabled)选项
- 按应用(Apply)按钮
- 按确定(OK)按钮
- 关闭组策略编辑器窗口。
让我们详细检查所有步骤。
第一步,您需要打开组策略编辑器(Group Policy Editor)(或GPO)窗口。使用搜索(Search)框,输入gpedit,然后按Enter键将其打开。您还可以使用PowerShell、Windows 11/10 设置(Setting)应用程序和其他方式打开组策略编辑器。
当组策略编辑器(Group Policy Editor)窗口打开时,使用以下路径访问打印机文件夹:(Printers)
User Configuration > Administrative Templates > Control Panel> 打印机
在右侧部分,您将看到防止删除打印机(Prevent deletion of printers)设置。通过双击打开该设置。
该设置将在新窗口中打开。在那里,您必须选择已启用(Enabled)选项。
在该窗口的右下角,单击应用(Apply)和确定(OK)按钮。之后,关闭组策略编辑器(Group Policy Editor)窗口。
现在用户将无法删除您的网络和本地打印机。Windows 11/10“设置”(Settings)应用中每台打印机的“删除(Remove)”按钮将消失。此外,您何时通过访问“设备和打印机(Devices and Printers)”部分右键单击打印机,“删除设备(Remove device)”选项仍然存在,但当您单击它时,将显示错误或限制消息。
稍后,如果您想允许用户删除添加的打印机,请按照上面介绍的步骤并打开防止删除打印机(Prevent deletion of printers)设置。之后,在设置窗口中选择未配置选项,然后使用(Not Configured)应用(Apply)和确定按钮。
现在您和其他用户将能够删除任何本地和网络打印机。
现在,任何用户都无法移除或删除您计算机上安装的打印机。
如果有人单击“删除设备(Remove device)”按钮,他将在屏幕上看到以下消息:
This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator.
如果要还原更改,请将NoDeletePrinter的值设置为 0 并重新启动计算机。如果它不起作用,请删除您创建的密钥。
相关(Related):如何防止在 Windows 11 中添加打印机。
(Does)删除打印机会删除驱动程序吗?
答案是“不”。在Windows 11/10中,您可以轻松移除打印机。但是,打印机驱动程序仍存储在您的设备内存中。当您必须再次快速安装打印机时,它很方便。但是,如果您不想再使用打印机,那么您还应该删除它的驱动程序。
您可以使用多种方法从 Windows 11/10 计算机中完全删除打印机。(completely remove a printer)例如,您可以使用打印机的打印机服务器(Printer Server)属性,然后删除所有驱动程序和驱动程序包,或者您可以使用命令提示符(Command Prompt)窗口,然后执行相关的命令来删除特定的打印机。
如何在Windows中更改打印机设置?
对于安装在 Windows 11/10 计算机上的每台打印机,您可以设置不同的设置。例如,您将能够设置:
- 页面方向(纵向(Portrait)或横向(Landscape))
- 纸张尺寸
- 打印质量
- 以灰度打印或进行彩色打印
- 纸张来源
- 边框
- 每张纸的页数等等。
为此,您需要打开打印机首选项(Printer Preferences)窗口来更改特定打印机的打印机设置。(Printer)只需(Just)打开Windows 11/10设置(Settings)应用程序,访问打印机和扫描仪(Printers & Scanners)设置页面,您就会看到可用打印机的列表。对于每台打印机,都会有一个打开打印机(Printer)首选项选项的选项。使用该选项,然后您可以根据您的要求设置打印机设置。
如果你有问题就告诉我们。
相关帖子(Related posts):
How to prevent users from deleting Printers in Windows 11/10
Τhe Add and Remove a device or printer option is available in Control Pаnel. These options are available for all users. Howеver, if an administrator wants, he can remove the access to these options for lоcal users. Τhis article will guide you on how to prevent users from deleting printers in Windows 11/10.
Prevent users from deleting Printers in Windows 11/10
Using Registry Editor
The method which we will show you to disable the Remove Device option is by using the Registry Editor. To use regedit, you must sign in to Windows computer as an administrator.
Follow the below-listed steps:
Press Windows + R keys to launch the Run dialog box. Type regedit
and click OK.
Click Yes in the UAC (User Account Control) window.
Copy the following path, paste it into the address bar of the Registry Editor, and press Enter. If you want, you can also go to the path manually.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Now, you have to create a new value in the Explorer subkey.
To do so, select the Explorer key, right-click on the right side of the interface, and go to “New > DWORD (32-bit) Value.”
Name the newly created value as NoDeletePrinter. Double click on NoDeletePrinter and set its value to 1.
Close the Registry Editor.
Using Group Policy Editor
Group Policy Editor feature is already present in Enterprise and Pro editions of Windows 11/10. If you are using its Home edition, first add Group Policy Editor to Windows 11/10 Home edition, and then only you will be able to use this option. Once you have done it, follow these steps:
- Open Group Policy Editor
- Access Printers folder
- Open Prevent deletion of printers setting
- Select Enabled option
- Press Apply button
- Press OK button
- Close Group Policy Editor window.
Let’s check all the steps in detail.
In the very first step, you need to open Group Policy Editor (or GPO) window. Use the Search box, type gpedit, and press Enter key to open it. You can also use PowerShell, Windows 11/10 Setting app, and other ways to open Group Policy Editor.
When the Group Policy Editor window is opened, access the Printers folder using the following path:
User Configuration > Administrative Templates > Control Panel > Printers
On the right-hand section, you will see a Prevent deletion of printers setting. Open that setting by double-clicking on it.
That setting will open in a new window. There, you have to select the Enabled option.
On the bottom right part of that window, click on Apply and OK buttons. After that, close the Group Policy Editor window.
Now users will not be able to delete your network and local printers. The Remove button for each printer from the Settings app of Windows 11/10 will vanish. Also, when will you right-click on a printer by accessing the Devices and Printers section, the Remove device option will still be there, but when you will click on it, an error or restriction message will be visible.
Later, if you want to allow users to delete added printers, then follow the steps that are covered above and open Prevent deletion of printers setting. After that, select the Not Configured option in the setting window, and use Apply and OK buttons.
Now you and other users will be able to delete any of the local and network printers.
Now, no user can remove or delete the printers installed on your computer.
If any person clicks on the Remove device button, he will see the following message on the screen:
This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator.
If you want to revert the changes, set the value of NoDeletePrinter to 0 and restart your computer. If it does not work, delete the key that you have created.
Related: How to prevent the addition of Printers in Windows 11.
Does removing a printer remove the driver?
The answer is a ‘No’. In Windows 11/10, you can easily remove a printer. However, the printer drivers remain stored in your device memory. It is handy when you have to quickly install a printer again. However, if you don’t want to use a printer ever again, then you should also remove its drivers.
There are various ways using which you can completely remove a printer from your Windows 11/10 computer. For example, you can use the Printer Server properties of a printer, and then remove all the drivers and driver package or you can use Command Prompt window and then execute the command associated to remove a particular printer.
How do I change printer settings in Windows?
For each printer installed on your Windows 11/10 computer, you can set different settings. For example, you will be able to set:
- Page orientation (Portrait or Landscape)
- Paper size
- Print quality
- Print in grayscale or take a colored print
- Paper source
- Borders
- Pages per sheet, and more.
For this, you need to open the Printer Preferences window to change the Printer settings of a particular printer. Just open the Settings app of Windows 11/10, access the Printers & Scanners Settings page, and there you will see the list of available printers. For each printer, an option to open the Printer preferences option will be there. Use that option and then you can set printer settings as per your requirements.
Let us know if you have any questions.
Related posts: