[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 495
  • Last Modified:

Remove al printers at logon

Hi,

I want to remove al installed printers (network and local printers) when users logon. Can I achieve that using Group Policy? Do I have to use a script?
0
SvenIA
Asked:
SvenIA
2 Solutions
 
workgaCommented:
you can add to your login script

C:\Windows\SysWOW64\Printing_Admin_Scripts\en-US\prnmngr.vbs -x


That will delete all the printers

This is for windows 7 x64

you should find the location of prnmngr.vbs if is a x32 version
0
 
SvenIAAuthor Commented:
Can I execute this as admin somehow?
0
 
ChrisCommented:
This can be found at "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" for x86 Win 7.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
SvenIAAuthor Commented:
The machines are x64. I found the script. When I run it, the printers can't be removed cause the user has no permissions.
0
 
X_layerCommented:
Try to run following command:
wmic printer delete /nointeractive

Open in new window

0
 
SvenIAAuthor Commented:
Thanks for the solution!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now