Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Use a regular expression pattern to remove nonalphabetic characters

Summary: Learn how to use a regular expression pattern to remove non-alphabetic characters from a string by using Windows PowerShell. (image)  How can I use Windows PowerShell to remove non-alphabetic characters from a string? (image)  To remove nonalphabetic characters from a string, you can use the -Replace operator and substitute an ...

PowerTip: Use PowerShell to configure BranchCache to run in local mode

Summary: Learn how to use Windows PowerShell to configure BranchCache to run in local caching mode. (image)  How can I use Windows PowerShell to configure BranchCache to run in local caching mode? (image)  Open Windows PowerShell in an elevated prompt, and use the Enable-BCLocal cmdlet. Here is an example: Enable-BCLocal (image...

PowerTip: Use PowerShell to dismount a disk image

Summary:  Learn how to use Windows PowerShell to dismount a virtual disk or ISO. (image)  How can I use Windows PowerShell to dismount a virtual disk? (image)  Use the Dismount-DiskImage cmdlet. It will dismount either an ISO or a virtual hard disk. Specify the path then using -imagepath. Here is an example: Dismount-DiskImage -imagepath...