ron Posted October 12, 2010 Posted October 12, 2010 (edited) 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? Edited October 12, 2010 by ron
localzuk Posted October 12, 2010 Posted October 12, 2010 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
ron Posted October 12, 2010 Author Posted October 12, 2010 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.
localzuk Posted October 12, 2010 Posted October 12, 2010 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.
MYK-IT Posted October 12, 2010 Posted October 12, 2010 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). 1
localzuk Posted October 12, 2010 Posted October 12, 2010 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?
MYK-IT Posted October 12, 2010 Posted October 12, 2010 (edited) 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) Edited October 12, 2010 by MYK-IT
ron Posted October 19, 2010 Author Posted October 19, 2010 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now