PowerShell Printer Scripts
PowerShell Printers I will show you how to use PowerShell to extract information about your printers. We will create a script which not only lists the printers, but also reveals their properties. For example, the printer’s sharename, driver, status and 90 other properties. Topics for PowerShell’s Printers Tasks for PowerShell …
Introduction to Microsoft PowerShell’s Drives Learning how to map a network drive in PowerShell is much easier than the equivalent MapNetworkDrive in VBScript. My biggest surprise with Get-PSDrive was that the registry appeared in the results. I was expecting a list of the local and network drive, but I had …
Windows PowerShell Loops Explained PowerShell has a variety of methods for stepping through data. The purpose of this page is to explain the differences between, 'For' and ForEach loops, and also how they in turn differ from the ForEach-Object cmdlet. Differences Bettween PowerShell Loops Example 1: PowerShell's For Loop Example …
Introduction to Windows PowerShell Out-File There are many occasions when you need to output the results of a script not to the screen, but want PowerShell to write to a file. In the old DOS days we could use the greater than symbol: ‘>’. However, to redirect PowerShell output we …
Display Error Codes with Microsoft PowerShell My mission on this page is to show you how to display error codes, furthermore, I will explain how to translate meaningless numbers into meaningful phrases. Topics for Error Codes in PowerShell Example 1: How to Create a PowerShell Function Example 2: Using a …
PowerShell Win32_NetworkAdapterConfiguration:More flexible Than Ipconfig Scripting WMI objects with PowerShell is a particularly productive area. On this page I will illustrate PowerShell’s capabilities by creating a script which is more flexible than Ipconfig. PowerShell Win32_NetworkAdapterConfiguration Topics Our Mission Objective 1: List WMI Objects Objective 2: WmiObject | Get-Member Objective 3: …