How to use Powershell to delete a printer

Windows 7.  I want to write a script that deletes all printers except that one I want to keep.  I'm hung up on the actual command that deletes the printer.  Win 8A remove printer.  Is there a similar command for Windows 7 or a module that adds in it?

Hi steve,.

You want to write a script that might help you to remove all printers except that it you want to keep, I suggest you to report the issue in the following link:

The official Forum of script guys!

http://social.technet.Microsoft.com/forums/en-us/iTCG/threads

It will be useful.

Tags: Windows

Similar Questions

  • How to use the capture and the print button

    I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?

    Thank you

    Andi Starbuck

    That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?

  • How to use powershell to create data warehouses Fibre Channel

    Hello

    Does anyone know how to use powershell to create data warehouses Fibre Channel?

    A text file lists the data warehouse with data store names and sizes (GB) as input:
    DatastoreName1 10
    DatastoreName2 200
    DatastoreName3 10

    Version5 VMFS file system
    Block size of 1 MB

    The script should ignore LUN ID 0 as long as it is not a data store, it's a startup logic unit number.

    The value in $esxname is correct?

    Do you want to see this name when you

    Get-VMHost | Select name

  • How to use the PrintJob.addPage method print movieclips on frame?

    Hello

    I am using Flash CS3, AS2.

    I try to print the movieclips placed on different images in the main timeline.

    First of all, I have to print the movieclip placed on the 172 chassis, and then print a movieclip on the 179 chassis and so on...

    I applied the code below to the event (release) on a button named btnPrint:

    var my_pj:PrintJob = new PrintJob();

    If (my_pj.start ()) {}

    var pageAdded:Boolean = false;

    pageAdded = my_pj.addPage (0, {xMin:394, xMax:1033, yMin:46, yMax:953}, null, 172);

    If {(pageAdded)

    my_pj. Send();
    }
    }

    I have 2 problems with the above code.

    First of all, when I click on btnPrint in my flash animation in the web browser, and then press the "print" button in the printer dialog, it can print the movieclip placed on the 172 but frame flash animation in my web browser goes to the framework 172 and stops there. I don't want my flash movie to actually go to the 172 section where the movieclip is placed, but I want to keep it at the current frame.

    The second problem is the flash movieclip placed on frame 172 a actionscript code in this document, which sets the text in the text box inside the movieclip to the value of the variable that was recovered using the loadVariablesNum() method. However, print them page shows the movieclip with no actionscript code executed - the text boxes are empty. I'm sure that codes in the movieclip actionscript is correct because movieclip exactly same spot on the current frame displays the text correctly area.

    Can someone explain to me how sove such problems?

    Thank you.

    do you see a problem in http://www.kglad.com/Files/forums/test4.html?

  • How to use 2 back on printer HP 310?

    How to use 2 faces on my printer HP 310?

    Is it the c310a or similar?  What is your operating system?  Usually the duplexer must be physically installed on the printer, then it must be enabled in the driver.  Once this is done, you should have an option for printing of "two sides automatically.»

    See the Vista/Windows 7 Duplex Printing Troubleshooting Guide for more information on how to enable the duplexer.

  • I accidentally deleted my printer how do I restore it back?

    Hello
    I accidentally deleted my printer in the printer list so how can I restore it back?
    model is hp officejet 4500 all-in-one and I am using windows vista

    Hey anammahmood,

    I see that you have a problem with your all-in-one Officejet 4500 on your Vista PC.  How are you connected to a Vista PC 4500? (USB, Ethernet or wireless)

    You have the full features software installed for this printer?

    If so, then try the following steps to reconnect to the printer.

    • Disconnect the USB cable if connected to this way of the PC/printer
    • Open the file devices and printers
    • Remove any remaining Announces the device in this folder
    • Right-click in the white space of the file devices and printers
    • Select run as administrator > properties of the print server
    • Select the tab drivers
    • Remove all remaining drivers for the 4500
    • Click on the start menu in the PC
    • Select all programs
    • Open the HP folder
    • Open the folder for the series of the Officejet 4500 G510
    • Select 'add a device '.
    • Follow the prompts on the screen

    I would like to know if it is able to get your printer connected with your Vista computer,

    Jason

  • How can I delete a print application

    Somehow, I started an app impression that I don't want, and it prints a newsletter whenever I start the printer and print an e-mail or other document. How can I delete a print application, in this case, the Sunday Times Digest.

    Hello

    Please use the following link (under 'Manage Print Apps' to cancel/remove it):

    http://support.HP.com/us-en/document/c03614219

    You can also get this:

    My impression applications

    To view and manage applications printing for your printer, use the display on the printer itself. This Web site cannot manage apps printing for your printer. In this case, you must cancel from your printer.

    Kind regards.

  • How to use the Print Screen function?

    I've seen various descriptions of how to use the print screen function.

    It would be nice to actually tell one that works.  None have worked for me.

    [Fn] and Prt SCr does not work.

    CTRL and Prt SCr does not work.

    CTRL, Alt, and Prt SCr does not work.

    [Fn], Ctrl and Prt SCr does not work.

    If anyone knows the correct method to activate the screen capture function which would be a good thing.

    From the looks of things, HP has a big problem with this function.

    Here's a microsoft articleon the use of the screenshot function.

    This should answer your questions.

    Thanks for taking a peek.

  • Print last page blank, how to avoid the last page to print, using NiReport

    Hi all

    I use NIReport to generate report/Print.

    I have problem

    I have a page to print,

    I wrote until the last line

    Problem is that NEITHER report adds a new, blank page, which is not necessary.

    This problem n, t occur when we write in the last row or left white.

    Note: I also have a header and footer details

    It will be printed on the blank page.

    When NIReport understand specific text is last line of the page, then NIReport automatically add the new page in the template.

    How to avoid printing the last white page in NIReport?

    Thank you

    Mukesh Kumar

    Just a guess: you use AppendLine? If so, you can try to move on AppendText to write the line, adding of newline as the first call when you need to start a new line. AppendLine adds a new line to the report after printing the line, and this can generate a blank page if you write to the last line on the page.

  • Does anyone know how to use the HP Deskjet F4580 wireless printer

    Does anyone know how to use the HP Deskjet F4580 wireless printer

    Do you have a specific question or just general knowledge?

    The manual is available online here.

  • HP Deskjet Ink Advantage 4645: how to use ink printer of Dubai in SG

    How to use my printer who had bought from Dubai to Singapore.

    Could not find the ink cartridge of in SG.

    Here's my printer model

    Printer e-all-in-one-HP Deskjet Ink Advantage 4645

    not produce is as below

    B4L10C

    INK CARTRIDGE NO. 650

    Hello

    Singapore (Asia Pacific), it uses 678. Now, please follow the instructions below to call HP and they will tell you how to reset it with a secret code:

    http://support.HP.com/us-en/document/c02558798

    Kind regards.

  • How can I delete recent printing on my eprint center?

    How can I delete recent printing on my eprint center?

    Thank you

    Hello Bronco99,

    There is no way at all in the current version of the eprintcenter.com to erase recent print jobs.  It may be available in future versions, but no announcements have been made.

  • How to eliminate the double printing using Windows Vista and the printing of a brother, all-in-One Printer, MFC 490CW wireless configuratrion?

    Example:

    NNooww iiss tthhee ttiimmee ggoooodd mmeenn ttoo ccoommee ttoo tthhee aaiidd ooff tthheeiirr ccoouunnttrryy aallll ffoorr...

    Print appears as above, except that the spacing between the characters seem to be a space of 1/2 rather than a complete space.

    Thank you

    Hello
    • When you try to print?
    • What were the changes made before the show?
    • How long have you been faced with this problem?
    You can view these methods:
     
    Method 1:
    I suggest you to check the print preview .
     
    Method 2:
    Uninstall the driver and the printer software:
    1. open devices and printers, click the Start button, and then on the start menu, click devices and printers.
    2 - Click on the printer you want to remove, click on remove the device and then click Yes.
    If you can't delete the printer, right-click again, click Run as administrator, click on remove the device and then click Yes.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    3. click on the properties of high print server of the screen and select the tab drivers, under delete evyrhing is installed as a printer except the xps document writer and send a note to the driver package.
     
    Step 2.
    Install the printer.
    Now reinstall the printer, refer to the article below to install a printer.
    Install a printer
    http://Windows.Microsoft.com/en-us/Windows-Vista/find-and-install-printer-drivers
  • How to use print screen (part two)?

    The previous thread for the print screen function was marked as read-only and will not allow replies. I tried all the suggestions (PrtScr, CTRL + C + PrtScr, etc.) and then CTRL V in MS Paint, but print screen still does not work on my machine.

    I am running Win 7 on a laptop HP Pavilion 6b32us cv7. I suspect there's a switch somewhere in Win 7 or HP that allows the key to be turned off. I know this because my former employer wouldn't anyone do the print due to HIPAA violations screens. Therefore, the feature has been disabled. Those of us in I.T. provided a third-party software that aloowed do us the same function, but it frees me not for physicians or healthcare staff. If I have to, I'll go out and buy the software. I really need this feature for a class I'm taking.

    Thank you!

    Kurt, welcome to the forum.

    Here is a video to show you how to use the tool captures:

  • How to open a pdf and read/print using Microsoft Works file?

    Error message: Works cannot open "C:\Users\Desktop\Zeke's Menu.pdf.  The file may be in use by another application, the file format is not supported by any of the installed converters or the file may be corrupt.

    How to open this file and read/print using Microsoft Works or Notepad or something else?

    You can't with these programs - (there is no same Modules for these programs) - you need another program.  You must download the free Acrobat Reader http://www.adobe.com/products/reader/ allowing you to read and print PDF files (but you will not be able to edit/modify them with this program).

    To edit/change you need another program like free PDF Editor: http://www.freedownloadscenter.com/Business/MS_Office_Add-ins/Free_PDF_Editor.html.  You can also download the free OpenOffice Suite 3.2 http://www.openoffice.org/ which is capable to download and work with PDF files (via the writer program).  The good thing about OpenOffice is that you can then save the file in another format which CAN be read and used by Microsoft Works or Notepad (even though it may look very different without the features of PDF).  OpenOffice is very similar to Microsoft Office and most of the people who do not want to pay for Microsoft Office get OpenOffice instead because it is by far the best alternative (and some say that it is even better - although I don't agree with that).

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for