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 ...
-
11th October 2005, 11:52 AM #1 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.
-
-
IDG Tech News
-
11th October 2005, 11:59 AM #2 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
-
-
11th October 2005, 12:04 PM #3 Re: Uninstall Office Document Image Writer across the domain
Cheers Geoff, I will give a go right now.
-
-
11th October 2005, 12:31 PM #4 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:
-
-
11th October 2005, 01:08 PM #5 Re: Uninstall Office Document Image Writer across the domain
-
-
11th October 2005, 01:13 PM #6 Re: Uninstall Office Document Image Writer across the domain
No, XP SP2 on a server 2003 SP1 network. Office 2003 SP2 too.
-
-
11th October 2005, 01:18 PM #7 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.
-
-
11th October 2005, 01:19 PM #8 Re: Uninstall Office Document Image Writer across the domain
Will do Geoff, thanks. The printer name is "Microsoft Office Document Image Writer"
-
-
11th October 2005, 01:24 PM #9 Re: Uninstall Office Document Image Writer across the domain
You'll have to change that too then.
-
-
11th October 2005, 02:05 PM #10 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
-
-
11th October 2005, 02:11 PM #11 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""
-
-
11th October 2005, 04:36 PM #12 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
-
-
11th October 2005, 05:44 PM #13 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.
-
-
11th October 2005, 06:31 PM #14 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
-
-
12th October 2005, 07:29 AM #15 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: 
Similar Threads
-
By atfnet in forum How do you do....it?
Replies: 13
Last Post: 10th July 2011, 11:58 AM
-
By link470 in forum Windows
Replies: 5
Last Post: 29th November 2007, 09:48 PM
-
By StewartKnight in forum MIS Systems
Replies: 8
Last Post: 11th October 2007, 01:28 PM
-
By russdev in forum General Chat
Replies: 1
Last Post: 17th September 2007, 11:52 AM
-
Replies: 6
Last Post: 28th September 2006, 07: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
-
Forum Rules