Results 1 to 3 of 3

Thread: Pushing out a new Printer to All users

  1. #1
    Join Date
    Jan 2004
    Posts
    49

    Pushing out a new Printer to All users

    I need some help here to push the newly configured printer to new users. There is a computer lab available at my lace. Here I am using Active Directory. The AD only manages all the users in the network. Here I am using Windows Server 2003. Recently I had added a new printer to the alb. It is connected on the network and somehow it is shared also. Now here I am able to log in but somehow the new printer is not working. I need some help here to allow new users to access the printer.

  2. #2
    Join Date
    Nov 2005
    Posts
    48
    Try to use this : WSHNetwork.SetDefaultPrinter "\\ServerName\PrinterName. You have to properly configure the printer path so that users on your network are able to access the same. I am also giving you a script that would help you to configure the printer is above thing does not work.

    Code:
    Set WSHShell = CreateObject("WScript.Shell")
    Set WSHNetwork = CreateObject("WScript.Network")
    
    'Edit the next line with your domain name
    DomainString = "DomainName"
    UserString = WSHNetwork.UserName
    'Bind to the user object to get user name and check for group memberships
    Set UserObj = GetObject("WinNT://" & DomainString & "/" & UserString)
    
    'Synchronizes the time with Server our NTP Server
    WSHShell.Run "NET TIME \\Server /set /y"
    
    'Disconnect any drive mappings as needed.
    WSHNetwork.RemoveNetworkDrive "F:"
    
    'Give the PC time to do the disconnect, wait 300 milliseconds
    wscript.sleep 300
    
    'Map drives needed by all
    WSHNetwork.MapNetworkDrive "U:", "\\server\users",True
    WSHNetwork.MapNetworkDrive "X:", "\\server\executables",True
    
    'Now check for group memberships and map appropriate drives
    For Each GroupObj In UserObj.Groups
    Select Case GroupObj.Name
    'Check for group memberships and take needed action
    'In this example below, ADMIN and WORKERB are groups.
    Case "Admin"
    WSHNetwork.MapNetworkDrive "w:", "\\Server\Admin Stuff",True
    Case "WorkerB"
    WSHNetwork.MapNetworkDrive "w:", "\\Server\Shared Documents",True
    End Select
    Next
    
    'Install Printers
    WSHNetwork.AddWindowsPrinterConnection "\\Server\HP5si"
    
    'Remove an old printer
    WSHNetwork.RemoveWindowsPrinterConnection "\\ServerOld\HP5si"
    
    ' This section of script will prevent the baloon window that appears when
    printing
    ' to a network shared printer after XP Service Pack 2 is installed.
    '=====================================
    
    Path = "HKCU\Printers\Settings\EnableBalloonNotificationsRemote"
    WshShell.RegWrite Path, 0 ,"REG_DWORD"
    
    'Clean Up Memory We Used
    set UserObj = Nothing
    set GroupObj = Nothing
    set WSHNetwork = Nothing
    set DomainString = Nothing
    set WSHSHell = Nothing
    
    'Quit the Script
    wscript.quit
    ===================

  3. #3
    Join Date
    Apr 2010
    Posts
    1

    Re: Pushing out a new Printer to All users

    How Do I Install Printers To Users By Userid

    I.e
    User Joy Needs For Printers Installed And Needs 1 To Be His Default
    Printer

Similar Threads

  1. Replies: 1
    Last Post: 26-05-2011, 12:06 AM
  2. Excessive pushing motherboard can damage it
    By Faizah in forum Hardware Peripherals
    Replies: 4
    Last Post: 20-05-2011, 03:40 AM
  3. Printer not work with multiple users within Windows XP
    By Triple-X in forum Hardware Peripherals
    Replies: 4
    Last Post: 14-02-2010, 04:32 AM
  4. Use CTRL+ALT+DEL Without Pushing All the Buttons
    By ChrisUlrich in forum Tips & Tweaks
    Replies: 1
    Last Post: 25-02-2009, 02:49 PM
  5. URGENT: Add a shared printer for all users in a computer
    By Gaspar in forum Windows Server Help
    Replies: 3
    Last Post: 18-10-2008, 03:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,286,433.94961 seconds with 17 queries