+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 20
Windows Thread, Uninstall Office Document Image Writer across the domain in Technical; Hi there, I have a bit of a problem with the Office Document Image Writer printer that gets installed with ...
  1. #1
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    608
    Thank Post
    53
    Thanked 12 Times in 12 Posts
    Rep Power
    23

    Uninstall Office Document Image Writer across the domain

    Hi there,
    I have a bit of a problem with the Office Document Image Writer printer that gets installed with office. Is there an easy way to remove it across the domain? The scripts I've tried for removing regular printers have failed. I know I could re-deploy office again without the image writer selected, but that will really be a last option as I don't fancy creating the MST and having machine's take 30 mins to boot up while they re-do the install.

    Any ideas will be welcomed.
    cheers.

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Uninstall Office Document Image Writer across the domain

    You can do this with a VBS script, however, one has to be violent and use the extended options for the RemovePrinterConnection method. Like so:

    Code:
    Option Explicit
    Dim objNetwork, strUNCPrinter
    strUNCPrinter = "Office Document Image Writer"
    bForce = "True"
    bUpdateProfile = "True"
    
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.RemovePrinterConnection strUNCPrinter, bForce, bUpdateProfile
    
    Wscript.Quit

  3. #3
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    608
    Thank Post
    53
    Thanked 12 Times in 12 Posts
    Rep Power
    23

    Re: Uninstall Office Document Image Writer across the domain

    Cheers Geoff, I will give a go right now.

  4. #4
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    608
    Thank Post
    53
    Thanked 12 Times in 12 Posts
    Rep Power
    23

    Re: Uninstall Office Document Image Writer across the domain

    Sorry to be a pain Geoff, but I'm getting the following error:

    Line: 4
    Char: 1
    Error: Variable is undefined: 'bForce'

    ops:

  5. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Uninstall Office Document Image Writer across the domain

    2000 machine?

  6. #6
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    608
    Thank Post
    53
    Thanked 12 Times in 12 Posts
    Rep Power
    23

    Re: Uninstall Office Document Image Writer across the domain

    No, XP SP2 on a server 2003 SP1 network. Office 2003 SP2 too.

  7. #7

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Uninstall Office Document Image Writer across the domain

    ah my bad.

    Change
    Code:
    Dim objNetwork, strUNCPrinter
    to
    Code:
    Dim objNetwork, strUNCPrinter, bForce,  bUpdateProfile
    Also double check that the printer name is correct, I'm not 100% on that either.

  8. #8
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    608
    Thank Post
    53
    Thanked 12 Times in 12 Posts
    Rep Power
    23

    Re: Uninstall Office Document Image Writer across the domain

    Will do Geoff, thanks. The printer name is "Microsoft Office Document Image Writer"

  9. #9

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Uninstall Office Document Image Writer across the domain

    You'll have to change that too then.

  10. #10
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    608
    Thank Post
    53
    Thanked 12 Times in 12 Posts
    Rep Power
    23

    Re: Uninstall Office Document Image Writer across the domain

    Ok, still no joy.

    I've copied it locally to an XP machine and run it there. I get the following error:

    Line: 8

    Error: This network connection does not exist

    Am I reading too much into the error message in assuming that this code will only work for network printers?

    Here is the current script:
    Code:
    Option Explicit
    Dim objNetwork, strUNCPrinter, bForce, bUpdateProfile
    strUNCPrinter = "Microsoft Office Document Image Writer"
    bForce = "True"
    bUpdateProfile = "True"
    
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.RemovePrinterConnection strUNCPrinter, bForce, bUpdateProfile
    
    Wscript.Quit

  11. #11

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Uninstall Office Document Image Writer across the domain

    Sorry I should of said, local printers need to be in quotes thus:

    Code:
    strUNCPrinter = ""Microsoft Office Document Image Writer""

  12. #12
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    608
    Thank Post
    53
    Thanked 12 Times in 12 Posts
    Rep Power
    23

    Re: Uninstall Office Document Image Writer across the domain

    Oh dear, that causes an "Expected end of statement" error at the end of the first set of double quotes.

    I feel guilty about taking up all your time with something that won't even benefit you. Maybe I should concentrate on making an MST instead after all

  13. #13

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    Boston, MA
    Posts
    7,601
    Thank Post
    110
    Thanked 771 Times in 599 Posts
    Rep Power
    183

    Re: Uninstall Office Document Image Writer across the domain

    I've been trying to get rid of this recently too.

    I've had no luck yet but I am past the stage of errors - there's another method of reoving printers with VBScript.

    I'll post my attempts so far when I get to work tomorrow.

  14. #14

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Uninstall Office Document Image Writer across the domain

    ok, lets try the evil hard coded approach.

    Code:
    Option Explicit
    Dim objNetwork
    
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.RemovePrinterConnection "Microsoft Office Document Image Writer", True, True
    
    Wscript.Quit

  15. #15
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    608
    Thank Post
    53
    Thanked 12 Times in 12 Posts
    Rep Power
    23

    Re: Uninstall Office Document Image Writer across the domain

    Sorry Geoff, we're back to "This network connection does not exist" with this one. The fact that it's a local printer is at root of the script problems I believe.



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Removeing MS XPS Document Writer & Symantec Fax Starter Ed
    By atfnet in forum How do you do....it?
    Replies: 13
    Last Post: 10th July 2011, 12:58 PM
  2. Microsoft Office on a Domain with Deepfreeze
    By link470 in forum Windows
    Replies: 5
    Last Post: 29th November 2007, 10:48 PM
  3. IEP Writer
    By StewartKnight in forum MIS Systems
    Replies: 8
    Last Post: 11th October 2007, 02:28 PM
  4. Script Writer Wanted
    By russdev in forum General Chat
    Replies: 1
    Last Post: 17th September 2007, 12:52 PM
  5. Replies: 6
    Last Post: 28th September 2006, 08:06 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
  •