+ Post New Thread
Results 1 to 6 of 6
Scripts Thread, Rename networked printers? in Coding and Web Development; Anyone know of a quick printer script to rename networked printers on clients? There is one over at Microsoft but ...
  1. #1
    mullet_man's Avatar
    Join Date
    Oct 2005
    Location
    Oldham
    Posts
    726
    Thank Post
    34
    Thanked 46 Times in 45 Posts
    Rep Power
    26

    Rename networked printers?

    Anyone know of a quick printer script to rename networked printers on clients?

    There is one over at Microsoft but I can't seem to get it working.

    I am a novice when it comes to scripts.

    Any pointers would be really great.

    Ste.

  2. #2

    Join Date
    Oct 2006
    Posts
    318
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Rename networked printers?

    Well, if your printer is connected to a Windows 2000 or Windows NT 4.0 print server i have bad news for you: you can’t rename a printer using a script, at least not using the technologies included in the operating system. (There might, or might not, be third-party tools that enable you to do this on those older versions of Windows.) If your printer is connected to a computer running Windows XP or Windows Server 2003, however, the news is much better.
    try this it might help
    [hr]

    Code:
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
    
    Set colPrinters =  objWMIService.ExecQuery _
        ("Select * From Win32_Printer Where DeviceID = 'HP'")
    
    For Each objPrinter in colPrinters
        objPrinter.RenamePrinter("ArtDepartmentPrinter")
    Next
    
    Set colPrinters = objWMIService.ExecQuery _
        ("Select * From Win32_Printer Where DeviceID = 'ArtDepartmentPrinter' ")
    
    For Each objPrinter in colPrinters
        objPrinter.ShareName = "ArtDepartmentPrinter"
        objPrinter.Put_

  3. #3
    mullet_man's Avatar
    Join Date
    Oct 2005
    Location
    Oldham
    Posts
    726
    Thank Post
    34
    Thanked 46 Times in 45 Posts
    Rep Power
    26

    Re: Rename networked printers?

    Thanks callumtuckey

    Thats the script from Microsoft, I can get it to rename local printers no problem, but had no luck networked printers.

    Was hoping to get it to rename networked printers so networked printers are not called Technology on server etc, just Technology.

    I'll take a closer look tomorrow, might have missed something.

  4. #4

    Join Date
    Oct 2006
    Posts
    318
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Rename networked printers?

    just have another go at it

    hope it works fingers crossed

  5. #5
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118

    Re: Rename networked printers?

    Quote Originally Posted by mullet_man
    Was hoping to get it to rename networked printers so networked printers are not called Technology on server etc, just Technology.
    I don't think you can do this using renaming... It may be a GPO setting or something but I suspect the "..on server" part is mandatory.

  6. #6
    mullet_man's Avatar
    Join Date
    Oct 2005
    Location
    Oldham
    Posts
    726
    Thank Post
    34
    Thanked 46 Times in 45 Posts
    Rep Power
    26

    Re: Rename networked printers?

    Can't seem to get this working, if it can be done at all?

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 8
    Last Post: 25th February 2009, 09:50 AM
  2. Networked photo album software
    By dhicks in forum How do you do....it?
    Replies: 8
    Last Post: 13th October 2007, 06:31 AM
  3. Networked OKI Printer Problem
    By markesmith in forum Wireless Networks
    Replies: 4
    Last Post: 20th February 2007, 12:23 AM
  4. Networked Laptops
    By ZeroHour in forum How do you do....it?
    Replies: 4
    Last Post: 24th April 2006, 05:30 PM

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
  •