+ Post New Thread
Results 1 to 11 of 11
Windows Thread, Students access to printers in Technical; Hi guys. we are having problems with kids printing rubbish to printers when they are not even in that department ...
  1. #1

    Join Date
    Jan 2008
    Posts
    61
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Students access to printers

    Hi guys. we are having problems with kids printing rubbish to printers when they are not even in that department

    we want the printer in the room/department to me mapped and then when they log on!! and then when they log off it gets removed.
    so that when they go to there next class they only have the printer in the room they are in.

    Im just bin unsure how to do this can you help thanks!!

  2. #2
    cookie_monster's Avatar
    Join Date
    May 2007
    Location
    Derbyshire
    Posts
    4,196
    Thank Post
    392
    Thanked 278 Times in 239 Posts
    Rep Power
    74
    You could use a logoff script or add this to the start of a logon script.

    Code:
    Dim  WSHPrinters, WSHNetwork, Path
    On error resume next
    
    'Remove ALL old printers
    
    Set WSHNetwork = CreateObject("WScript.Network")
    Set WSHPrinters = WSHNetwork.EnumPrinterConnections
    For LOOP_COUNTER = 0 To WSHPrinters.Count - 1 Step 2
    'To remove only networked printers use this If Statement
        If Left(WSHPrinters.Item(LOOP_COUNTER +1),2) = "\\" Then
          WSHNetwork.RemovePrinterConnection WSHPrinters.Item(LOOP_COUNTER +1),True,True
        End If
    'To remove all printers incuding LOCAL printers use this statement and comment out the If Statement above
    
    'WSHNetwork.RemovePrinterConnection WSHPrinters.Item(LOOP_COUNTER +1),True,True
    Next
    
    Set WSHPrinters = Nothing
    Set WSHNetwork = Nothing
      
    'Quit the Script
    wscript.quit
    Last edited by cookie_monster; 10th March 2008 at 10:47 AM.

  3. #3

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,331
    Thank Post
    622
    Thanked 1,579 Times in 1,416 Posts
    Rep Power
    414
    we do that as shown above, the first part of our add printers vbs delets existing connections and then adds new one based on where they are.

    Ben

  4. #4

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    In Windows Server 2003 R2, you can push out printers on a User or Computer basis, or a combination of the two (per OU).

  5. #5
    richardp's Avatar
    Join Date
    May 2007
    Location
    North Yorkshire
    Posts
    131
    Thank Post
    3
    Thanked 25 Times in 25 Posts
    Rep Power
    19
    Scripting is the way to go, I have done something similar that looks at the AD OU and maps a default printer depending on what room they are in.

    However don't you have any print management software running to stop users printing unless they have credit? We use Print Manager Plus from softwareshelf, it works well and stops anyone printing to any printer unless we grant them credit. It also gives you a way reporting how much is printed over time etc...

    Richard

  6. #6

    Join Date
    Nov 2007
    Posts
    554
    Thank Post
    3
    Thanked 3 Times in 3 Posts
    Rep Power
    15
    Just a thought, but if you have printers allocated by room via a GPO, you wont have to bother with scripts. .

  7. #7

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,331
    Thank Post
    622
    Thanked 1,579 Times in 1,416 Posts
    Rep Power
    414
    What's the mechanism for removing them then when you go to a different room/ou?

    If they're not removed it's cumulative.

    Ben

  8. #8

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    Well you'd have to create an OU and GPO for each room where you'd want to push out a particular printer. Move the Computer Objects into the relevant OU, then configure distribution using the Print Management tool.

    I've always pushed out printers on a user basis, however I know the computer option is also there; but never tried it in practice. This guide helped me, so I am sure it'll help you.

    Using GPOs is also very easy to remove printers, as and when printers are changed or upgraded (for example).

  9. #9

    Join Date
    Jan 2008
    Posts
    172
    Thank Post
    18
    Thanked 10 Times in 9 Posts
    Rep Power
    15
    There is also a cheap piece of software called Autoprint that looks at the AD location field for computers / printers.

    We just use scripts that a GPO runs when students log on. it finds the VBS on the local machine which points to a VBS on our 2003 print server etc.

  10. #10
    Bestbett's Avatar
    Join Date
    Apr 2007
    Location
    Hiding
    Posts
    46
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Couldn't you only allow the computers in the room you want to print to the printer Print permission?

  11. #11

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    No, permission to print is a user property.

    I wrote a bodge-it script that takes one parameter - the name of the printer you want - and then I call it from a group policy object per room. Works fine.

SHARE:
+ Post New Thread

Similar Threads

  1. Remote access for staff and students
    By ITWombat in forum How do you do....it?
    Replies: 11
    Last Post: 14th December 2009, 11:33 AM
  2. MS Access for students
    By cookie_monster in forum General Chat
    Replies: 17
    Last Post: 12th February 2008, 09:58 PM
  3. Replies: 7
    Last Post: 2nd May 2007, 06:58 PM
  4. Replies: 32
    Last Post: 25th July 2005, 07:17 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •