Category: Powershell

PowerShell Scripting – WMI Techniques

PowerShell’s File Techniques Applied toWin32_Computersystem Our mission on this page is to combine opening files with WMI techniques.  Specifically, to open a text file, read the hostnames (machine names), then apply that name to a PowerShell Win32_Computersystem script. Topics for WMI File Techniques Preparation with PowerShell’s Get-Help WMI Class Win32_Computersystem …

PowerShell Show-BalloonTip Function

How PowerShell Can Display a Notification Balloon This is just a fun project to learn about PowerShell functions; in particular, how to make use of .Net objects such as Windows.Forms. Show-BalloonTip Function Planning the Show-BalloonTip Function Code for the Show-BalloonTip Function Researching Windows.Forms Properties  ♣ Planning the Show-BalloonTip Function The …

PowerShell LastBootUpTime WMI

How to Check Computer UpTime Using PowerShell 3.0 I have received a few surprises when using this WMI script to see when the computer last booted.  Some servers have clearly rebooted without me realizing (remembering!).  On the other hand, I have seen laptops which the script shows haven’t actually rebooted …

PowerShell 2.0 ISE

PowerShell 2.0 ISE Integrated Scripting Engine (GUI) The command line will always be at the heart of PowerShell.  However, all scripting languages benefit from a GUI, or an Integrated Scripting Environment (ISE) as Microsoft describes this add-on console.  If you merely use PowerShell to issue a few one-line commands then …

Windows PowerShell Format-Table Cmdlet

Windows PowerShell Scripting – Format-Table (FT) Format-Table, or FT for short, controls the formatting of the output of your Windows PowerShell commands.  Whenever presentation of information is important, pipe the script’s output into Format-Table.  On this page I will show you examples of this straightforward, but important command. Windows PowerShell …

PowerShell Retrieves Outlook Addresses

How PowerShell Interacts with Outlook The purpose of this page is to employ PowerShell to GetNameSpace("MAPI"), and thus make it possible to interact with Microsoft's Outlook client. PowerShell with Outlook Planning: PowerShell Interrogates Outlook List Senders' Addresses Instructions: Creating a PowerShell Function Ideas for Analyzing Outlook Emails Another Example Reading …