delete network printers

Windows 7 pro running on domain with 2008R2
We currently have several printers in several rooms each for the department they are in i.e. English, maths, science etc.
What we have is a group policy to deploy these printers when the user logs into that particular room, however the problem we have is the printer never gets deleted when the user goes to another room so they keep all printers throughout the school and can print to any from anywhere once they have logged into all the rooms.
Is there a way to auto delete the printer when the user logs off so they start from scratch in each room they log onto?
Many thanks
CheadleAcacademyAsked:
Who is Participating?
 
AcklesCommented:
Please read till end, as you will not waste time in trying other things& will clear some concepts too.
A
0
 
CheadleAcacademyAuthor Commented:
I have tried this and it is still not removing the printers, even on a newly created account.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
AcklesCommented:
Can you make a check?
Remove the Printer & then login & see. If the printer is applied it will show up till you remove it.

A
0
 
CheadleAcacademyAuthor Commented:
We have logged in as administartor and deleted the printers but when logged into another room it still remembers the printers from before
0
 
AcklesCommented:
Can you please post GPO you have made for printer deployment?
Also where have to linked it to?

A
0
 
CheadleAcacademyAuthor Commented:
This is a screenshot of the GPO that deploys the LRC printers. It is applied to the LRC OU which contains two subUO's that have the computer objects in them.
LRC-Printer-GPO.jpg
0
 
AcklesCommented:
Did you consider using Logoff Script as mentioned in the discussion?
A
0
 
CheadleAcacademyAuthor Commented:
yes but its a different policy with just that logon script on.
0
 
AcklesCommented:
I am sorry, do you mean the one mentioned in the forum?

See this text from forum:

This problem occurs because all network printers are per user setting and are stored in each user’s profile. Even when you deploy printer connection via the “The computers that this GPO applies to (per machine)” option, the printer configuration is stored in a user’s profile and will not be removed automatically when a user logs off. If you are using roaming profile, you will notice that printers are roaming with users.

This corresponds to your scenario & making a logoff script would get you the desired results.
A
0
 
CheadleAcacademyAuthor Commented:
The script mentioned in the forum links to this which is what I used.
0
 
AcklesCommented:
Can you run RSOP to confirm that script ran?
0
 
AcklesCommented:
Or maybe Manually run it & see the affect?
0
 
AcklesCommented:
One more thing, you have 2 GPO's linked on the root level, so everyone logging will get both the printers every time they login.
0
 
CheadleAcacademyAuthor Commented:
I have run the script locally on the computer and got the attached error. Line 9 Char 5 is objPrinter
script-error.jpg
0
 
AcklesCommented:
You confirm that you ran with Admin Credentials?
0
 
CheadleAcacademyAuthor Commented:
Yes i was logged on with a domain administrator account with full local administrator rights.
0
 
AcklesCommented:
k, so now we have to figure out how this script to run.
Let me have a look & then we take it further.

On another note, can you in the meantime try to put the script locally & run instead of calling it from Share?
Best, is run it from Admin Command Prompt.

A
0
 
CheadleAcacademyAuthor Commented:
logged in as domain admin i ran cmd as administrator and ran the script from the local C:\ drive and got the same error.
0
 
AcklesCommented:
Please have a look at this, it's more descriptive:
http://www.computerperformance.co.uk/Logon/Logon_Remove_Printer.htm

Once we can remove the printer we can see if this works & if it works, then we can incorporate it in logoff scripts.

A
0
 
AcklesCommented:
Any luck?

A
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
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.

All Courses

From novice to tech pro — start learning today.