PowerTip: Display Hidden Files in PowerShell

Summary: Boe Prox shows how to use Windows PowerShell to display hidden files.  How can I use Windows PowerShell to display hidden files and folders? There are a couple of approaches that use Get-ChildItem: Get-ChildItem –Hidden Get-ChildItem –Attributes H


Weekend Scripter: Remove a Long Path File

Summary: Boe Prox shows how to remove a file with a long path. Honorary Scripting Guy and Cloud and Datacenter Management MVP, Boe Prox, here today filling in for my good friend, the Scripting Guy. This is a continuation of this weekend series on working with PowerShell and PInvoke to do things that you normally…


PowerTip: Display Titles of Windows

Summary: Boe Prox shows how to use Windows PowerShell to find the titles of windows.  How can I use Windows PowerShell to find the titles of windows?  Use Get-Process and display the title of the processes for windows by looking at            the MainWindowTitle property, for example: Get-Process | Where {     $_.MainWindowTitle } |…


Weekend Scripter: Manage Window Placement by Using PInvoke

Summary: Boe Prox shows us how to manage window placement in Windows PowerShell. Honorary Scripting Guy and Cloud and Datacenter Management MVP, Boe Prox, here today filling in for my good friend, the Scripting Guy. Today I start a little weekend fun by using a technique known as platform invoke, or PInvoke for short. What…


PowerTip: Update Module from PowerShell Gallery

Summary: Boe Prox shows how to update a module from the Windows PowerShell Gallery.  How can I update a module from the Windows PowerShell Gallery?  Run the following command to check for an update to the module and install the update if one is found: Update-Module –Name PoshRSJob –Verbose VERBOSE: Checking for updates for module…


Weekend Scripter: A Look at the PoshRSJob Module

Summary: Boe Prox presents a module for working with runspaces. Honorary Scripting Guy and Cloud and Datacenter Management MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy. Today I finish up my series about using runspaces in PowerShell by showing you a module that I put together that makes working…


PowerTip: Add Custom Function to Runspace Pool

Summary: Boe Prox shows how to add a custom function to a runspace pool.  How can I use Windows PowerShell to add a custom function to a runspace pool?  Use the following approach: #Custom Function Function ConvertTo-Hex {     Param([int]$Number)     ‘0x{0:x}’ -f $Number } #Get body of function $Definition = Get-Content Function:\ConvertTo-Hex -ErrorAction Stop…


Beginning Use of PowerShell Runspaces: Part 3

Summary: Boe Prox shows us some tips about using runspace pools for multithreading. 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: Beginning Use of PowerShell Runspaces: Part 1   Begin use with…


PowerTip: Get the Async Object Created by BeginInvoke

Summary: Boe Prox shows how retrieve a seemingly lost Async object from a runspace.  How can I get the seemingly lost Async object created by BeginInvoke?  Use Reflection to pull this information out of a Runspace object and get the Async object, which is required            to use with EndInvoke(). $Runspace = [runspacefactory]::CreateRunspace() $PowerShell = ::Create() $Runspace.Open()…


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: Beginning Use of PowerShell Runspaces: Part 1   Begin use with runspaces. Beginning Use…