Showing category results for PowerTip

Apr 15, 2016
Post comments count0
Post likes count0

PowerTip: Use a regular expression pattern to remove nonalphabetic characters

Doctor Scripto

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

Scripting Guy!Windows PowerShellPowerTip
Apr 5, 2016
Post comments count0
Post likes count1

PowerTip: Create a nested PowerShell custom object

Doctor Scripto

Summary: Learn how to create a nested PowerShell custom object.  How do I create a nested PowerShell custom object to store layers (nested) of information? Use a hashtable with the PSCustomObject type accelerator, and specify PSCustomObject as the value to the Property Name (Key): [PSCustomObject]@{ PropertyName = [PSCustomObject]@{ NestedPrope...

Scripting Guy!Windows PowerShellPowerTip
Mar 14, 2016
Post comments count0
Post likes count0

PowerTip: Find your version of PowerShell

Doctor Scripto

Summary: Learn how to find your Windows PowerShell version easily.  How can I use Windows PowerShell to tell me what version of Windows PowerShell I am running?  Use the $PsVersionTable automatic variable. To see the major, minor, build, and revision of Windows PowerShell, use the following: $PSVersionTable.PSVersion  

Scripting Guy!Windows PowerShellscripting techniques
Mar 12, 2016
Post comments count0
Post likes count0

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

Doctor Scripto

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

Scripting Guy!Windows PowerShellPowerTip
Mar 12, 2016
Post comments count0
Post likes count0

PowerTip: Use PowerShell to dismount a disk image

Doctor Scripto

Summary:  Learn how to use Windows PowerShell to dismount a virtual disk or ISO.  How can I use Windows PowerShell to dismount a virtual disk?  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 “C:\fso\myisodisk.iso”

Scripting Guy!Windows PowerShellPowerTip