• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

remove the computer from the OU, but printers will remain+GPO

have an OU where I put computers in a GPO, a specific printer.
 I wish that when I delete a computer so the printer should also be removed from the computer.
 but it does not .... the printer is in the GPO under Computer Settings - Control Panel-Printers
 is there any tips

 have a nice day
 Annicka
0
helmiesmatte
Asked:
helmiesmatte
  • 6
  • 4
  • 3
  • +1
2 Solutions
 
setasoujiroCommented:
You could create another OU, and before you delete the computer from the first move it to that OU.
Then make a GPO that calls this batch:

rundll32 printui.dll,PrintUIEntry /q /gd /n\\server\printer
0
 
moon_blue69Commented:
@setasoujiro

The user has to start/log shutdown/log off for the removal of the printer. Then only we can delete it? Does this leave us with the required automation?


@helmiesmatte

Cant you give printer security settings to specify who can print? That way only specified people can print irrespective of the computer. Wont this give a desired effect?
0
 
setasoujiroCommented:
I assumt that the pc still stays in production, so yes the required automation will remain
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

 
helmiesmatteAuthor Commented:
Sorry I dont meen delet computer only move....computer will later belong to a different OU with other printers Therefore I want the old printer to be removed
0
 
moon_blue69Commented:
@setasoujiro
 
Forgive me for my ignorance if I am wrong, when we delete the computer from AD how is it supposed to get the GPO applied.

So after moving the PC to new OU with the GPO and deletion of the PC some one has to log in?

0
 
moon_blue69Commented:
Oh ok then @setasoujiro solution will work with a printer deployment script on that OU
0
 
setasoujiroCommented:
Nobody said anything about removing it from AD, only from a specific OU...
Someone will always log in again if the PC is just moved from that OU, the OP never said anything about removing the PC from the network...?
0
 
setasoujiroCommented:
You could also use this script as a starter to just map printers for specific OU's:
http://blogs.technet.com/b/heyscriptingguy/archive/2007/07/27/how-can-i-map-a-printer-based-on-the-computer-s-ou.aspx
0
 
moon_blue69Commented:

Sorry was confusing
I wish that when I delete a computer so the printer should also be removed from the computer.
0
 
setasoujiroCommented:
Yeah no problem, but i just thought it was logically that she kept it in production, because otherwise it wouldn't really matter if the said printer was still there if it was removed from the network :)
0
 
helmiesmatteAuthor Commented:
Sorry is not good at English and thanks for all the tips I thought it would serve as an ex when you shoot out the program (MSI) through GPO and it removes the computer from a security group would also act as printers.
 but I'll try if it works with security groups instead of OU.
 Also see that you recommend script can test it too if nothing else works
 thanks again
 
0
 
setasoujiroCommented:
No problem, consider awarding points is the answers solved it :)
0
 
helmiesmatteAuthor Commented:
no not yet are not at work right now will be back with more information later
0
 
hdhondtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Technology Partners: 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!

  • 6
  • 4
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now