+ Post New Thread
Results 1 to 14 of 14
How do you do....it? Thread, Removeing MS XPS Document Writer & Symantec Fax Starter Ed in Technical; Hi, Is there a way to remove the MS XPS Document Writer and Symantec Fax Starter Edition virtual printers ? ...
  1. #1

    Join Date
    Feb 2007
    Posts
    70
    Thank Post
    3
    Thanked 4 Times in 2 Posts
    Rep Power
    15

    Removeing MS XPS Document Writer & Symantec Fax Starter Ed

    Hi,
    Is there a way to remove the MS XPS Document Writer and Symantec Fax Starter Edition virtual printers ? preferably via a cmd script or vbs.

    Thanks

    Andy

  2. #2
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,386
    Thank Post
    10
    Thanked 483 Times in 423 Posts
    Rep Power
    110

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter Ed

    I had a script that did the Microsoft document imager with wmi, I'll see if I can find it

  3. #3
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,386
    Thank Post
    10
    Thanked 483 Times in 423 Posts
    Rep Power
    110

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter

    Code:
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colInstalledPrinters =  objWMIService.ExecQuery ("SELECT * FROM Win32_Printer")
    For Each objPrinter in colInstalledPrinters
    	IF objPrinter.Name = "Microsoft XPS Document Writer" THEN
    		objPrinter.Delete_
    	END IF
    Next

  4. #4

    Join Date
    Feb 2007
    Posts
    70
    Thank Post
    3
    Thanked 4 Times in 2 Posts
    Rep Power
    15

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter

    Thanks :-)

  5. #5

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter

    I get an access denied error for this script on line 6, any reason why it would be doing that?

    "objPrinter.Delete_"

    Just using it as a logon script in a group policy, is it that the script doesnt have the rights to delete the local XPS Document driver or something?

  6. #6
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,386
    Thank Post
    10
    Thanked 483 Times in 423 Posts
    Rep Power
    110

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter Ed

    needs to be a startup script so it runs with the system account

  7. #7

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter

    Do startup scripts get executed before the login scripts?

    It's just I've got a login script that sets up the printers on the machine so i need the xps driver deleting first so that the 1st printer that gets set up in the printers script becomes the default.

  8. #8

    Join Date
    Jul 2007
    Location
    Devon
    Posts
    233
    Thank Post
    8
    Thanked 9 Times in 8 Posts
    Rep Power
    15

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter Ed

    Startup scripts go before the computer even reaches the Ctrl Alt Del screen.

  9. #9

    Join Date
    Apr 2006
    Location
    Bamber Bridge
    Posts
    192
    Thank Post
    3
    Thanked 10 Times in 10 Posts
    Rep Power
    18

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter Ed

    Would i be able to edit the script to delete the macromedia flash paper printer? If so which bit do i need to alter?

    Cheers,

    Ste

  10. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter

    Have a look at this script, it's slightly modified to delete the XPS writer and the Image writer.

    Code:
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colInstalledPrinters = objWMIService.ExecQuery ("SELECT * FROM Win32_Printer")
    
    For Each objPrinter in colInstalledPrinters
    	IF objPrinter.Name = "Microsoft Office Document Image Writer" THEN 
    		objPrinter.Delete_
    	ELSEIF objPrinter.Name = "Microsoft XPS Document Writer" THEN
    		objPrinter.Delete_
    	END IF
    Next

  11. Thanks to Geoff from:

    OutToLunch (1st March 2010)

  12. #11

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter

    Quote Originally Posted by Lithium
    Startup scripts go before the computer even reaches the Ctrl Alt Del screen.
    Maybe I'm just being stupid but does this need to applied to the domain group policy then?

    If I apply this to my students group policy how would the computer know to run the script before it even knows that a student is logging on?

    @Geoff

    Will the script crap out if it tries to delete a printer that doesn't exist? Some of our clients have the Microsoft Office Document Image Writer printer, some dont, will it be OK to use the one script that deletes the XPS driver and the Image Writer drive on all the machines?

  13. #12

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Removeing MS XPS Document Writer & Symantec Fax Starter Ed

    The script runs silently regardless of the status of printers on the PC.

  14. #13
    emerald0517's Avatar
    Join Date
    Jul 2011
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Exclamation

    Quote Originally Posted by DMcCoy View Post
    Code:
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colInstalledPrinters =  objWMIService.ExecQuery ("SELECT * FROM Win32_Printer")
    For Each objPrinter in colInstalledPrinters
    	IF objPrinter.Name = "Microsoft XPS Document Writer" THEN
    		objPrinter.Delete_
    	END IF
    Next
    CAN SOMEONE PLEASE TELL ME WHERE TO WRITE THIS SCRIPT...PLEASE, IM SO FED UP WITH THIS SH. I DONT KNOW ANYTHING ABOUT THIS BUT I HAVE TO GET RID OF XPS, ITS DRIVING ME CRAZY. WHERE AND WHEN TO ENTER THIS SCRIPT. I HAVE A PC WITH WINDOWS 7 AND ITS JUST MY SINGLE PC.
    THANK YOU!

  15. #14


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,142
    Thank Post
    204
    Thanked 2,398 Times in 1,774 Posts
    Rep Power
    705
    If you are using Windows 7, run the following from an elevated Command Prompt to disable the XPS printer.

    Code:
    DISM /Online /Disable-Feature /FeatureName:Printing-XPSServices-Features
    BTW, there's no need to shout!

SHARE:
+ Post New Thread

Similar Threads

  1. Free PDF Writer / Converter
    By disinfo in forum Educational Software
    Replies: 25
    Last Post: 11th April 2009, 08:45 AM
  2. IEP Writer
    By StewartKnight in forum MIS Systems
    Replies: 8
    Last Post: 11th October 2007, 01:28 PM
  3. Script Writer Wanted
    By russdev in forum General Chat
    Replies: 1
    Last Post: 17th September 2007, 11:52 AM
  4. Which AV does Symantec use?!?
    By Nij.UK in forum General Chat
    Replies: 2
    Last Post: 27th June 2007, 11:06 PM
  5. Replies: 19
    Last Post: 5th December 2005, 01:03 PM

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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