Category: Powershell

PowerShell -Filter Command or Parameter

PowerShell -Filter Parameter Information overload?  The ideal method when PowerShell delivers too much data is to append -Filter.  Incidentally, newbies refer to PowerShell's -Filter as a command rather than a parameter. Topics for PowerShell's -Filter Parameter Example 1a: Filter for Executables Example 2a: Compare PowerShell -Filter with Where-Object Example 3: …

PowerShell Trace-Command

Windows PowerShell Trace Command On this page I will describe how to employ PowerShell's built-in cmdlet to debug problems.  Trace-Command cmdlet initiates a record of how PowerShell attempts to execute the specified expression.  PowerShell Trace-Command Topics Investigate Components to Trace Example 1: Trace-Command Filesystem Sample Output of Trace-Command Example 2: …

Using PowerShell to Create a Shortcut

PowerShell’s New-Object -Com Creates a Shortcut The purpose of this page is to explain how to create a shortcut on your desktop.  The method we will be using is, New-Object -ComObject WScript.Shell. Topics for PowerShell Creates Desktop Shortcut PowerShell’s New-Object -Com Create the Object (WScript.Shell) Create a Functioning Shortcut on …

Quest PowerShell – QAD Snap-In

Quest PowerShell – QAD Snap-In A company called Quest, provides extra commands for PowerShell, some people call this Quest PowerShell, however I call them QAD cmdlets.  What ever the name, QAD (Quest Active Directory provides nifty ‘shortcuts’ for PowerShell.  The idea is to install the activeroles snap-In, which contains Active …

PowerShell Send-Email Function

How PowerShell Can Send Email I will show you how PowerShell can employ Outlook to actually send email messages. Guy's Send-Email Function (Cmdlet) Planning Guy's Send-Email Function Creating an Outlook Object in PowerShell Creating the Send-Email Function Options and Improvements for Send-Email Researching Properties for This Cmdlet Function  ♣ Planning …

PowerShell Test-Connection Cmdlet

The benefits of Test-Connection are two-fold: you can measure average response times, something that’s not possible with ping.  And you can employ Test-Connection as a vehicle for learning about PowerShell’s mathematical cmdlets such as Measure-Object and . Topics for PowerShell Test-Connection Cmdlet Getting Started: Switch from Ping to Test-Connection PowerShell …