Scripting Blog

A place to learn about PowerShell and share stories of automation

Beginning Use of PowerShell Runspaces: Part 2

Summary: Boe Prox presents some tips about beginning use with runspaces.Honorary Scripting Guy and Cloud and Datacenter Management MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy.Note   This is a four-part series that includes the following posts: Yesterday, we spent some time ...

PowerTip: Find Current Runspaces in PowerShell

Summary: Boe Prox shows how to find the current runspaces in Windows PowerShell.  How can I list all of the currently running runspaces in Windows PowerShell? Use the Get-Runspace cmdlet in Windows PowerShell 5.0:Get-RunspaceId Name      ComputerName    Type      State...

Beginning Use of PowerShell Runspaces: Part 1

Summary: Boe Prox presents some tips about beginning use with runspaces.Honorary Scripting Guy and Cloud and Datacenter Management MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy.Note   This is a four-part series that includes the following posts: Let's say you are working in ...

How Can I Determine the Day of the Week?

Hey, Scripting Guy! I have a script that does certain management tasks based on the day of the week. I know how get the date in a script, but how can I tell whether it’s a Monday or a Tuesday or whatever?-- CT, Tallahassee, FLHey, CT. This is actually much easier then it might sound; that’s because VBScript ...