Scripting Blog

A place to learn about PowerShell and share stories of automation

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 couldn’t do natively. ...

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:...

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 is PInvoke, you ask...

PowerTip: Find Scripts in Script Center Repository from PowerShell ISE

Summary: Use a free add-on to directly access scripts and modules from the Windows PowerShell ISE.  In Windows PowerShell 5.0, I can access the TechNet Gallery for PowerShell modules, but is there an easy way            to access and search the older Script Center Repository from the PowerShell ISE?  In ...

A Holiday Special: Rusty the Red-Eyed Scripter, Part 5

Summary: Rusty discovers the power of classes and enums in Windows PowerShell 5.0.    Note   This is a five-part series that includes the following posts: When last we ran into our good friend Rusty, he had encountered the infamous Scripting Guy, Ed Wilson, and listened to his introduction about the ConvertFrom-...