+ Post New Thread
Results 1 to 8 of 8
Windows Thread, Removing one note via a script in Technical; Does anyone know how to remove the Send To OneNote as this is causing problems on the network with users ...
  1. #1
    ron
    ron is offline

    Join Date
    May 2009
    Location
    UK
    Posts
    119
    Thank Post
    25
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Removing one note via a script

    Does anyone know how to remove the Send To OneNote as this is causing problems on the network with users assuming this is the printer.

    Is there a script that can be used so when the user logs on Send To OneNote is deleted?
    Last edited by ron; 12th October 2010 at 01:59 PM.

  2. #2

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    18,332
    Thank Post
    525
    Thanked 2,596 Times in 2,014 Posts
    Blog Entries
    24
    Rep Power
    888
    I dunno about removing OneNote via script, but you should be able to remove 'Send To OneNote' or whatever the printer is called via script.

    Logon Script example vbs remove printer with removeprinterconnection method

  3. #3
    ron
    ron is offline

    Join Date
    May 2009
    Location
    UK
    Posts
    119
    Thank Post
    25
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Sorry I meant Send To OneNote, it would be best if this does not show with the printers. If this could be deleted at login via a script that would be great.

  4. #4

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    18,332
    Thank Post
    525
    Thanked 2,596 Times in 2,014 Posts
    Blog Entries
    24
    Rep Power
    888
    Quote Originally Posted by ron View Post
    Sorry I meant Send To OneNote, it would be best if this does not show with the printers. If this could be deleted at login via a script that would be great.
    Take a look at the link I posted, it goes into detail on how to remove a printer using vbs.

  5. #5

    Join Date
    Dec 2007
    Posts
    889
    Thank Post
    94
    Thanked 165 Times in 140 Posts
    Rep Power
    50
    Could always use Group Policy Preferences to remove the printer.

    User Configuration > Preferences > Control Panel Settings > Printers

    New Task > Local Printer

    Select action as [delete] and enter the name of the printer.

    This will only remove the printer and not the driver(s).

  6. Thanks to MYK-IT from:

    zag (26th September 2013)

  7. #6

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    18,332
    Thank Post
    525
    Thanked 2,596 Times in 2,014 Posts
    Blog Entries
    24
    Rep Power
    888
    Quote Originally Posted by MYK-IT View Post
    Could always use Group Policy Preferences to remove the printer.

    User Configuration > Preferences > Control Panel Settings > Printers

    New Task > Local Printer

    Select action as [delete] and enter the name of the printer.

    This will only remove the printer and not the driver(s).
    Only if they use Win 2k8 though I think? GPP isn't in 2k3 is it?

  8. #7

    Join Date
    Dec 2007
    Posts
    889
    Thank Post
    94
    Thanked 165 Times in 140 Posts
    Rep Power
    50
    We're using it fine with Windows 2003 Domain and XP Pro Clients.

    1) XP Clients need KB943729 installed. Follow Link

    2) Create a Group Policy Central Store Link 1 or Link 2

    3) A Windows 7 Pro (or Windows 2008+ Server) Client is required to create and manage the new policies on.

    If you want to get rid of the Right Click, Send to, OneNote this can be done via GPP as well by using:

    User Configuration > Preferences > Windows Settings > Files

    Find the location of the OneNote shortcut, and set to delete.

    On Windows XP it is C:\Documents and Settings\&username%\SendTo (not checked Windows 7 etc)
    Last edited by MYK-IT; 12th October 2010 at 02:28 PM.

  9. #8
    ron
    ron is offline

    Join Date
    May 2009
    Location
    UK
    Posts
    119
    Thank Post
    25
    Thanked 1 Time in 1 Post
    Rep Power
    0
    This issue is now resolved by using the following script:

    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_
    ELSEIF objPrinter.Name = "Send To OneNote 2007" THEN
    objPrinter.Delete_
    ELSEIF objPrinter.Name = "Microsoft Office Document Image Writer" THEN
    objPrinter.Delete_
    END IF
    Next



SHARE:
+ Post New Thread

Similar Threads

  1. [Pics] doctors note
    By RabbieBurns in forum Jokes/Interweb Things
    Replies: 1
    Last Post: 19th March 2009, 09:27 PM
  2. Footer note
    By Dafty in forum EduGeek Joomla 1.0 Package
    Replies: 5
    Last Post: 28th April 2008, 11:17 PM
  3. [Joke] The note
    By alexknight in forum Jokes/Interweb Things
    Replies: 1
    Last Post: 6th March 2008, 04:23 PM
  4. Deployment Note #1
    By m25man in forum Learning Network Manager
    Replies: 0
    Last Post: 14th January 2006, 01:00 AM

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
  •