PowerShell Print Server remove checkmark from print share "List in the Directory"

I needed to remove the checkmark in the "List in the directory" box under printer queue sharing for several hundred print queues on multiple Windows 2003 print servers.  I ended up doing it manually because I could not figure out how to do it with
PowerShell.  Would like to be prepared for next time and learn a bit more about PowerShell.  Scripting newbie.  Anyone able to get me started?  Couldn't find the registry key pertaining to the setting though I could find it under get-wmiobject
- class win32_printer ... -property published.  Have googled for 2 days.  Most of the scripts suggestions that seem to apply are a bit more extensive and complicated than I am willing to tackle with my experience level.

Great code. I wanted the opposite (to enable it) so I wrote this - which checks to see if the printer has a . in the portname (which for me shows it has an IP address) and to see that it's not already shared.
$printers = Get-WMIObject -class Win32_Printer -computer localhost
foreach ($printer in $printers) {
IF ($Printer.PortName.Contains(".") -and $printer.published -eq $false) {
$printer.Name + " : " + $printer.published
$printer.published = $true
$printer.put()

Similar Messages

  • Bonjour shared printer keeps removing itself from printer list

    I print thru my imac G5 Tiger to a "Bonjour Shared" Smasung printer. I add the printer, load drivers, lock the preferences. Next day I have to search for the the printer again and reload again (searching) for drivers. Any way to keep this in my printer list so it does not have to search for drivers every time??
    Thanks!

    Known issue I guess- just keep doing the setup for now.....
    http://docs.info.apple.com/article.html?artnum=307012
    Issue or symptom
    If you add a printer that is being shared by another Mac (it is displayed as "Kind: Bonjour Shared" in the Add Printer dialog window) to your printer list, then put your Mac to sleep, the printer may be removed from the printer list. The shared printer may not be removed during display sleep, only during system sleep (when your Mac's sleep light is pulsating).
    Products affected
    Mac OS X 10.5 Leopard
    Solution
    After waking your computer from sleep, add the printer again in the Print & Fax pane of System Preferences, or by choosing Add Printer... from the Printer pop-up menu in the Print dialog.
    This document will be updated as more information becomes available.

  • HT201068 I want to ignore this update.  How do I remove it from my active list on the App Store app?

    Can I remove this update from the active list on the computer?  I don't want it active as I may by mistake install this unwanted update

    You can only hide some updates (i believe only OS X updates).  You can do so by right clicking or control clicking in the blank area around the description or title of the update in the App Store list and choosing hide update.  If you'd like to restore them, choose the Store option from the menu bar and then "show all software updates"
    you can alternatively use the Terminal to "ignore" updates and reset "ignored updates".  For more information on that open Terminal and type:
    softwareupdate info

  • Can SharePoint automatically remove documents from "Followed Documents" list once the document is deleted?

    Hi,
    SharePoint 2013, I followed a document.  It appears in my "Followed Documents" list.  Now someone deleted the document I followed.  I want the item be automatically removed from my "Followed Documents" list.  How to
    do this?
    Many thanks!

    Hi Sindy,
    According to your description, my understanding is that you want to automatically delete the following documents links after the documents are deleted.
    I tested the same scenario in my environment, and I got the same results as you got.
    It is by design that the links will not be deleted automatically when the documents are deleted.
    We need to click Stop following to clear the links.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Removing items from itunes wish list

    iTunes will currently NOT let me remove items from my wish list inside the itunes store. Even when I've selected the item to buy, it stays in my wish list... I need to remove items that have either been purchased, or that I no longer wish to buy. Thanks for the help!

    Looks like it's not just you having problems : https://discussions.apple.com/thread/3093114?tstart=0
    Normally pressing the 'x' on or next to the item should delete it (http://support.apple.com/kb/HT1368), but it doesn't appear to be working at the moment.

  • Is the print server over-writing client printing preferences with defaults?

    I'm testing a new 2012 R2 print server, and have set the printing defaults by clicking on the printer in Print Management and 'set defaults'.  I used this to set things like double-sided printing etc.
    When the printers are added to the test client workstations (manually, not by group policy), we then have to add in some details in printing preferences to authenticate that client to the printer.  A valid access code, and print mailbox that tally with
    the same settings on the printer.  It's tedious, but that's what our current printers demand.
    What's happening with the new 2012 R2 print server in testing is that it seems to be overwriting these authentication preferences and returning all the printing preferences to the defaults set on the print server.
    It's likely that this is a feature or setting that I'm just not aware of, could anyone tell me please how to set those printing preferences as 'first time' preferences that can then be edited on the workstation, and persist?

    Would you know of any resource where I could learn all the ins and out of printer management in 2012? A blog/a book/MVA course?
    I assume you are using the General tab of the printer properties , then clicking Preferences to set the
    Users defaults with the device specific data. 
    There are two ways to open up the Printing Preferences dialogue for shared printers that I'm aware of.
     Open the Print Management console, open the print server, and printers.  (1) Right Click on the printer and Set Printing Default or (2) Right Click on the printer, Properties, then from General Tab click Preferences.
    Do changes made via both of those routes have the same affect regarding default settings that are given to the client or is there a difference between them?
    I have been using method (1) above, but if there's any difference I'd be interested to know.
    When it comes to adding the printers to the clients, there are also two options.  (A) Control Panel, Printers, Add Printer, and add from directory.  (B) In Windows Explorer, browse to the print server and double click the printer name to connect
    it.
    Is there any difference between those two routes?  I had been using method (B), and then editing the preferences... when then seemed to be overwritten by the server defaults.  Yesterday I used method (A) and so far the printing preferences for
    the test clients have not yet been overwritten.

  • What's the difference between HP Wireless G Print Server and HP Wireless Printing Upgrade Kit?

    Hello!!
    What’s the difference between HP Wireless G Print Server and HP Wireless Printing Upgrade Kit?
    I found two things as follows.
    1. MAC support
    2. USB dongle
    Is there anything else?

    Now I’m clear!!
    But there are descriptions for each on your home page over view tab. Due to this forum restriction; I cannot put the URL here.
    They say for each as follows.
    HP Wireless Printing Upgrade Kit --- Retain full all-in-one wireless functionality: print, fax from your PC, scan, and access photo memory cards access and PC status
    HP Wireless G Print Server --- Get the same functionality with your all-in-one: printing, scanning, photo memory card access, PC faxing, and printer statusSo I got confusion, that’s why I did not get the difference for them.
    And I found wrong description on your HP support document page. I recommend that you correct it, because it put consumer into confusion and break to buy this product.
    The title is “HP Wireless Printing Upgrade Kit - Setting up the HP Printer with the HP Wireless Printing Upgrade Kit in Windows .”
    The wrong description is “NOTE:  You must turn on the computer with the computer adapter in order to print to the wireless product” at last line of “Step two: Configure other computers to use the printer. “
    You can erase this line!!

  • The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The Acrobat 9.x product family passed into "End of Support" mid-year of 2013.
    Acrobat 9 support of MS Project via PDFMaker stops with Office 2007.
    For Office 2013 support you must use Acrobat XI (11.0.1) or newer. 
    A good to have reference:
    https://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
    Acrobat Pro and Standard DC are what are currently available for purchase. 
    Be well...

  • Removing vendor from HMRC approved list (UK Specific)

    Hi ,
    Is it any recent  notes avialble for removing vendor from HMRC approved list to control outbout delivery . This is UK specific or EU specific . or any standard control are their for this .
    Thanks
    RB

    Hi,
    If you know the target field where you want to remove quote then you can write routine in the transformation .
    You can use field level routine to achive this.
    Hope this will help you..
    Thanks,
    Jitendra

  • Is it possible add or remove contact from a Shared list via API?

    Hi Eloquan,
    i'm preatty new in Eloqua and i'm wondering if is possible add/remove contact from a Shared list via API...
    any help will be welcomed.
    M.

    Gr8 not a problem why do you use a composite view pattern.
    --->In that case make use of Proper patterns in your design before forwading it to a view.
    ---->Use a Public JSP Statically include JSP's in WEB-INF folder using static page include which happens at compile time.
    REGARDS,
    RaHuL

  • HT4356 My printer, Epson Stylus Office TX600FW, is not listed on the AirPrint. How to add it? Would Apple expand the list?

    My printer, Epson Stylus Office TX600FW, is not listed on the AirPrint. I can't find it on my iPad or iPhone. How to add it? Would Apple expand the list?

    Only the printer manufacturer can make it compatible with AirPrint, it's not up to Apple. You could try Epson's iPrint app, that claims to support that model :
    http://itunes.apple.com/us/app/epson-iprint/id326876192?mt=8

  • How to remove items from my reading lists on my ipad?

    how to remove items from my reading lists on my ipad?

    Swipe across its name in the list and it should get a Delete button on it - tap that and it should be removed from the list

  • Please remove me from your mailing lists!

    PLEASE REMOVE ME FROM YOUR MAILING LISTS!!!
    Sent from my iPhone
    <Re-Titled By Host>

    You will need to go through a couple of steps in order to remove your subscription: one is on any community, click the "following" button and it will change to "follow" which means you are no longer subscribed. The same applies to any discussion/question you initiate - you will be automatically subscribed, so unfollow that. And, last, click on your name "welcome Chascartri" and then Preferences and turn email notifications OFF.
    As an FYI, please do not shout at the other users/volunteers here as that is what typing in all caps means.

  • Had to remove itunes from my computer to reset the computer. Now I'm having problems syncing my iphone with the computer. Computer is saying it wants to download updates to the phone but that will delete things I downloaded straight from the phone. Help!

    Had to remove itunes from my computer to reset the computer. Now I'm having problems syncing my iphone with the computer. Computer is saying it wants to download updates to the phone but that will delete things I downloaded straight from the phone. Help!

    iTunes thinks you have a new computer because you restored the OS. Open iTunes and authorize it to the same account you have on the iPhone. Did you restore your iTunes content from a backup after resetting your computer? Have you been syncing regularly with the computer, and does the iTunes library on the computer contain your apps, music and videos? If so just sync and your content will be removed then restored.
    If you have not hopefully you have now learned something. You can recover apps and purchased songs by connecting the phone, without syncing, and choose "Transfer purchases..." from the File menu.

  • HT201304 Can I remove apps from my purchase list

    Can I remove apps from my purchase list..?

    No. You can hide them from the Purchases section of the iTunes Store through iTunes on a computer (or your iPad if it's still running iOS 5):
    http://support.apple.com/kb/HT4919
    but there's no way to remove apps permanently, nor can they be removed nor hidden in the Purchase History.
    Regards.

Maybe you are looking for

  • Getting different result while executing the report by debugger

    Hi All,             I am facing a peculiar issue. When i execute the report from SE38 i am getting a particular set of values in a alv report. But if i start debugging the report by using /h and execute . i am getting another set of result. How does

  • Query PO by DFF

    How to query PO by DFF... In Purchase Order form i have one DFF named PO Priority, i want to query my PO's as priority wise. like how many PO are URGENT PRIORITY. thank in advance

  • Regarding BEX

    hello Experts, Here Is my Scenario :   I  have a query designed in bex which shows the order item wise delivery and invoice. now since the item is delivered in two diliveries , it shows it quantity twise and in result row also it conted twise in tota

  • How to attach a calendar in forms 10g

    Dear all, I would like to get an assistance on attaching a calendar in oracle forms 10g. i have my form which has one text box for capturing date_brith. I would like to attach a calendar with my forms from which a user will be selecting his/her date

  • Keep your eyes open for this user

    this person just came harrassing my girlfriend into trying to force her to give her password to him (which she didn't ofcourse) but since we don't know if this is a distraction while trying to hack your password, I figured I'd drop this here so you'r