Rem Removes unwanted local print devices from Windows, such as MS OneNote and XPS devices
%WINDIR%\system32\cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -xo
Rem Remove unwanted server queues from Windows
%WINDIR%\system32\cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -x
Rem Removes printer drivers from devices not in use
%WINDIR%\system32\cscript.exe //NoLogo "%WINDIR%\System32\Printing_Admin_Scripts\en-US\prndrvr.vbs" -x
Rem Adds Network Print Queue
%WINDIR%\system32\cscript.exe %WINDIR%\system32\Printing_Admin_Scripts\en-US\prnmngr.vbs -ac -p \\printservername\queuename
Rem Sets default printer
%WINDIR%\system32\cscript.exe %WINDIR%\system32\Printing_Admin_Scripts\en-US\prnmngr.vbs -t -p \\printservername\queuename
https://theitbros.com/allow-non-admins-install-printer-drivers-via-gpo/
ไม่มีความคิดเห็น:
แสดงความคิดเห็น