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
helmiesmatteAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.