Browse by Tags

Tagged Content List
  • Blog Post: Weekend Scripter: Add Security Groups to Print Servers by Using PowerShell

    Summary : Guest blogger, Alan Morris, talks about using Windows PowerShell to add security groups to print servers. Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest blog from Alan Morris. Here is a little about Alan: Alan Morris has been involved with testing the Windows print...
  • Blog Post: Weekend Scripter: Use PowerShell to Fix Broken Printer

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to fix a printer that keeps losing its duplexer. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about Windows PowerShell is that if I want to, I can generally use it to solve all of my issues. Sometimes...
  • Blog Post: Use Dynamic Parameters to Populate List of Printer Names

    Summary : Microsoft Scripting Guy, Ed Wilson, shows how to use dynamic parameters to populate a list of printer names. Microsoft Scripting Guy, Ed Wilson, is here. Using a Windows PowerShell function to send a test page to a printer is pretty cool (see Use PowerShell to Send Test Page to a Printer...
  • Blog Post: Use PowerShell to Send Test Page to a Printer

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to send a test page to a printer. Microsoft Scripting Guy, Ed Wilson, is here. This morning I am sipping an awesome orange-cream tea that I picked up at a tea shop in Leipzig, Germany. It smells wonderful, and it tastes...
  • Blog Post: How Can I Remove All the Local Printers from a Computer?

    Hey, Scripting Guy! How can I remove all the local printers from a computer? -- JW Hey, JW. You did say that you wanted to do this only on computers running Windows XP or Windows Server 2003, didn’t you? You didn’t? Oh. Well, we’re going to pretend that you did, because this is a very easy task to...
  • Blog Post: How Can I Let Users Choose a Default Printer From a List of Printers?

    Hey, Scripting Guy! In a logon script, how can I enable users to choose a default printer from a list of the printers installed on their computer? -- JD Hey, JD. You know, a lot of people write in to say, “Hey, Scripting Guys! Why do you limit yourselves to system administration scripting? Don’t you...
  • Blog Post: How Can I Print a Test Page to a Printer?

    Hey, Scripting Guy! How can I print a test page to a printer? -- RR Hey, RR. As long as you’re running Windows XP this is an easy one; that’s because the revised Win32_Printer class introduced in Windows XP includes a method called PrintTestPage . As you might expect, this means you can bind to a...
  • Blog Post: Hey, Scripting Guy! How Can I Use Windows PowerShell to Remove Old Printer Connections, List Printers, and Set New Default Printers?

    Hey, Scripting Guy! Well it finally happened. Our budget request for new printers was approved. We have gotten them unboxed, distributed, and hooked up to the LAN. We have even downloaded the latest drivers from the Internet, and updated the firmware on several of the printers. The drivers are installed...
  • Blog Post: Hey, Scripting Guy! How Can I Perform More Than One Action with the Win32_Printer WMI Class?

    Hey, Scripting Guy! The Win32_Printer WMI class has several methods that are listed in it. But I am not sure how to best use these methods from inside a Windows PowerShell script. I do not want to create four different scripts to send a test page, clean out print jobs, and to cycle the print queue. Do...
  • Blog Post: How Can I Print Text Files Using a Script?

    Hey, Scripting Guy! I have a bunch of text files in a folder. Is there a way to print those files using a script? I know I can use Microsoft Word to print the files from a script, but I don’t have Microsoft Word installed on that computer. -- MA Hey, MA. Don’t tell anyone from Microsoft we said this...
  • Blog Post: Use PowerShell in Windows 8 to Remove Printers

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell 3.0 in Windows 8 to remove printers. Microsoft Scripting Guy, Ed Wilson, is here. The Scripting Wife and I have been talking to various people from the Charlotte Windows PowerShell User Group all week about doing another...
  • Blog Post: How Can I Tell Which Users are Connected to a Print Queue?

    Hey, Scripting Guy! How can I tell which users are connected to a print queue? -- RE Hey, RE. You know, if your printers are anything like the ones the Scripting Guys are used to working with then it’s easy to tell which users are connected to a print queue: all you have to do is walk into the printer...
  • Blog Post: Hey, Scripting Guy! How Can I Use WMI to Add a Printer Connection by Using Windows PowerShell?

    Hey, Scripting Guy! I am trying to determine how to use WMI to add a printer connection by using Windows PowerShell. I have found this script , but it uses VBScript and not WMI. This means that it is not very close at all, I am afraid. Do you have a WMI script I can use? - CM Hi CM, Ed looked around...
  • Blog Post: Hey, Scripting Guy! How Can I Document Printer Usage on Client Workstations?

    Hey, Scripting Guy! I am tasked with the problem of documenting printer use on our client workstations. I must be able to determine whether someone prints directly to a printer, or if they are printing through our print servers. This is important because we have purchased a print monitoring software...
  • Blog Post: How Can I Remove All the Black-and-White Printers on a Computer?

    Hey, Scripting Guy! On a Windows XP computer, how can I remove all the black-and-white printers, leaving only color printers? -- JL Hey, JL. You know, in one classic episode of the Simpsons, Bart, in the throes of a sugar high, joins the Junior Campers. The next morning, realizing what he has done...
  • Blog Post: How Can I Receive Notification Any Time Something is Printed to a Particular Printer?

    Hey, Scripting Guy! How can I receive notification any time something is printed to a particular printer? -- IL Hey, IL. You know, one of the Scripting Guys once had a summer job in an organization where the only decent printer in the entire building was kept in the administrative assistant’s office...
  • Blog Post: Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (05/22/09)

    How Can I Determine if a Particular Windows Feature Is Installed? Hey, Scripting Guy! I am new to Windows PowerShell scripting and have a little experience with WMI thanks to your Windows PowerShell Scriptomatic tool. I'm trying to determine whether a particular optional Windows component or feature...
  • Blog Post: Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (12/25/09)

    In this post : How Can I Get a List of All Drivers Available to a Computer? Can I Query IIS Via WMI? Tell Me More About Querying WMI Objects Tell Me More About the WMI Shadow Copy Class Troubleshooting an HTA Script How Can I Deploy a Windows Service Pack and Ignore Those Computers...
  • Blog Post: Weekend Scripter: Easily Publish all Printers on a Print Server to Active Directory

    Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell 3.0 to publish printers in Active Directory Domain Services (AD DS). Microsoft Scripting Guy, Ed Wilson, is here. While I was studying for one of the tests for the new MCSE for server infrastructure, Exam 70-410: Installing...
  • Blog Post: How Can I Share All the Local Printers on a Computer?

    Hey, Scripting Guy! How can I write a script that will automatically share all the local printers on a computer? -- CD Hey, CD. You know, when we redid the Hey, Scripting Guy! archive we created a new category devoted exclusively to printing. When we started to fill out the archive pages, however...
  • Blog Post: How Can I Purge All the Print Jobs on a Windows 2000 Print Server?

    Hey, Scripting Guy! How can I purge all the print jobs on a Windows 2000 print server? -- KC Hey, KC. This is one of those questions we hate, not because we don’t have an answer for it - we do - but because we have to temporarily abandon one of the core tenets of the Scripting Guy Way of Life. That...
  • Blog Post: How Can I List the Network Printers For the Logged-On User?

    Hey, Scripting Guy! How can I create a logon script that lists the network printers for the logged-on user, then writes that information to a text file? -- RC Hey, RC. You know, the nice thing about coming to work after a few days off is – well, OK, so maybe we can’t actually think of anything nice...
  • Blog Post: How Can I Purge a Print Queue on a Print Server?

    Hey, Scripting Guy! How can I purge a print queue on a print server? I need to do this on both Windows 2000 and Windows Server 2003. -- KD Hey, KD. And hey: no fair! Lots of times we take the easy way out in this column: we provide an answer that works only on Windows XP or Windows Server 2003, and...
  • Blog Post: Use PowerShell to Create New Printer Ports

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell 3.0 to create new printer ports in Windows 8. Microsoft Scripting Guy, Ed Wilson, is here. One of the exciting things that is happening around the Scripting House is the appearance of new Windows PowerShell Saturday...
  • Blog Post: How Can I Change the Printer Port for a Printer?

    Hey, Scripting Guy! How can I change the printer port for a printer? For example how can I change it from FILE: to LPT1:? -- HK Hey, HK. Despite the Scripting Guys reputation as sophisticated intellectuals - really? We don’t have a reputation as sophisticated intellectuals? Really ? This is very distressing...