{"id":189,"date":"2010-05-19T12:15:35","date_gmt":"2010-05-19T16:15:35","guid":{"rendered":"http:\/\/www.cs.toronto.edu:40006\/wlog\/?p=189"},"modified":"2010-05-19T12:15:35","modified_gmt":"2010-05-19T16:15:35","slug":"issues-with-printui-dll-in-login-scripts","status":"publish","type":"post","link":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/?p=189","title":{"rendered":"Issues with Printui.dll in login scripts"},"content":{"rendered":"<p>I&#8217;ve spent a bit more time working with printui.dll to install printers, and found some interesting things:<\/p>\n<p>1. Adding a printer to the machine doesn&#8217;t seem to automatically make it available to active directory accounts.\u00a0 It does allow the AddWindowsPrinterConnection command from the Wscript.shell object to set up the printer.<\/p>\n<p>2. It can only be run once on a machine for a given printer without giving an error, making it impractical to put into a login script for users (but possibly useful for a remote command or new machine script).<\/p>\n<p>At the moment, I&#8217;m leaving it out of the login scripts and just manually adding the printers for windows 7 boxes.\u00a0 If group policy managed print management in windows 2008 works out, I&#8217;ll switch to using that to set up printers instead.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve spent a bit more time working with printui.dll to install printers, and found some interesting things: 1. Adding a printer to the machine doesn&#8217;t seem to automatically make it available to active directory accounts.\u00a0 It does allow the AddWindowsPrinterConnection command from the Wscript.shell object to set up the printer. 2. It can only be [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[36,63,64],"_links":{"self":[{"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/posts\/189"}],"collection":[{"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=189"}],"version-history":[{"count":1,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/posts\/189\/revisions"}],"predecessor-version":[{"id":190,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/posts\/189\/revisions\/190"}],"wp:attachment":[{"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}