Category: Powershell

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 …

Microsoft PowerShell Drives

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 …

PowerShell’s Out-GridView Cmdlet

PowerShell Out-GridView – New in Version 2.0 Out-GridView provides a better way for PowerShell to present tabulated information.  It works particularly well for displaying data returned by Get-Service or Get-Process. Topics for PowerShell Out-GridView Introduction to Out-GridView Ex 1: Out-GridView and Get-Service Ex 2: Out-GridView and Get-Process Members of the …

PowerShell Compare-Object Registry

PowerShell Compare-Object Registry The mission of this page is to employ PowerShell’s Compare-Object to find differences in registry settings, in other words, to discover where changes to settings are stored in the registry. Topics for Compare-Object Mission to Generate a List of Differences Example 1: To Compare Two Files, and …

Windows PowerShell New-Item

Windows PowerShell Scripting New-Item PowerShell’s New-Item is a versatile cmdlet particularly good for creating files and folders.  New-Item typifies PowerShell’s simplicity coupled with power, added to versatility. Windows PowerShell New-Item Topics Example 1: New-Item Folder Example 2: New-Item File Example 3: New-Item Registry More New-Item Tutorials  ♣ Example 1: New-Item …

PowerShell: More Flexible than Ipconfig

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: …