Category: Powershell

PowerShell Get-NetAdapter

List Your Network Adapters with PowerShell 3.0 PowerShell 3.0 introduces a new family of NetAdapter of cmdlets.  Get-NetAdapter is the default, and its job is to enumerate your computer’s network cards (NICs). Tutorial for Get-NetAdapter The Magic of PowerShell’s NetAdapter Simple Example of Get-NetAdapter Research NetAdapter Properties How to Enable …

Windows PowerShell Import-CSV

Windows PowerShell Import-CSV Cmdlet The Import-CSV cmdlet is often employed for changing the format of the data.  Another use is for creating users by bulk importing their data from a csv file. Windows PowerShell Import-CSV Topics Example 1: PowerShell Import-CSV Example 2: ForEach with Import-CSV Research Import-CSV Parameters  ♣ PowerShell …

Windows PowerShell Examples

Examples to Illustrate Windows PowerShell Basics While PowerShell has all the complexities of leading scripting language, it is particularly easy to pick up the basics.  To see how friendly PowerShell is for the novice try my simple examples on this page. Basic PowerShell Examples: Finding Files Example 1:  List Log …

Microsoft PowerShell Syntax

Introduction to Microsoft PowerShell’s Syntax This section is dedicated to explaining PowerShell’s individual syntactic elements.  I also regard these topics as reference material for that time when you forget how to choose the correct type of bracket, or when a single quote does not get the job done. Microsoft PowerShell Syntax …

PowerShell Credits

PowerShell Credits I started learning about PowerShell in April 2006.  Most people would have waited six months before writing articles, but not gung-ho Guy.  Actually, it’s in the nature of a newish product such as PowerShell that there will be errors, misconceptions and changes of direction, hence an even greater …

PowerShell Compare-Object

Compare-Object to Find the Differences Between Files The main job of this cmdlet is produce a list of items missing from the reference file. Topics for PowerShell Compare-Object Cmdlet Example 1: To Compare Two Files, and List Differences Example 2: To Compare Two Files, with -Parameters Example 3: How to …

PowerShell Parameters

All Windows PowerShell cmdlets and functions supply parameters.  By mastering the seemingly endless options for these ‘switches’, you will gain precision when scripting with the underlying cmdlet. Parameter names are introduced by a hyphen (-), and followed by a text or numeric value, for example: Cmdlet (or function) -Parameter value …