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: 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 the…


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: Rusty the Red-Eyed Scripter, Part 1 Rusty discovers compressing files and working with the Clipboard  Rusty the Red-Eyed Scripter, Part 2 Rusty discovers how Windows PowerShell 5.0 can pull modules from…


PowerTip: Convert Data to Hexadecimal Output in PowerShell 5

Summary: Use the Format-Hex cmdlet to produce hexadecimal output.  How can I use Windows PowerShell to put data in a binary key in the registry?  In Windows PowerShell 5.0, you can use the Format-Hex cmdlet, for example: ‘This is meant to be binary’ | Format-Hex $DataForRegistry=(‘This is meant to be binary’ | Format-Hex).Bytes


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

Summary: Rusty the Red-Eyed Scripter learns how PowerShell can convert raw string data to an object.    Note   This is a five-part series that includes the following posts: Rusty the Red-Eyed Scripter, Part 1Rusty discovers compressing files and working with the Clipboard  Rusty the Red-Eyed Scripter, Part 2Rusty discovers how Windows PowerShell 5.0 can pull modules…


PowerTip: Clear Recycle Bin with PowerShell 5

Summary: Easily purge the Recycle Bin on a targeted drive with PowerShell 5.  How can I use Windows PowerShell to easily flush out the Recycle Bin?  In Windows PowerShell 5.0, use the Clear-RecycleBin cmdlet. For example, run the            following command with elevated rights to purge the Recycle Bin on drive C: Clear-RecycleBin…


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

Summary: Rusty the Red-Eyed Scripter learns how to unblock files and tweak event logs with Windows PowerShell 5.0.   Note   This is a five-part series that includes the following posts: Rusty the Red-Eyed Scripter, Part 1Rusty discovers compressing files and working with the Clipboard  Rusty the Red-Eyed Scripter, Part 2Rusty discovers how Windows PowerShell 5.0 can pull…


PowerTip: Uninstall Module with PowerShell 5

Summary: Learn how to uninstall a Windows PowerShell module.  How can I easily uninstall a Windows PowerShell module?  Use the Uninstall-Module cmdlet to remove anything discovered by using Find-Module. For example,            to permanently remove the LocalAccount module, use: Uninstall-Module LocalAccount


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

Summary: Rusty the Red-Eyed Scripter discovers how Windows PowerShell 5.0 can pull modules from a central repository.   Note   This is a five-part series that includes the following posts: Rusty the Red-Eyed Scripter, Part 1Rusty discovers compressing files and working with the Clipboard  Rusty the Red-Eyed Scripter, Part 2Rusty discovers how Windows PowerShell 5.0 can pull…