Showing archive results for December 2014

Dec 11, 2014
Post comments count0
Post likes count0

PowerTip: Replace Multiple Words in String with PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to replace multiple words in a string.    How can I use Windows PowerShell to replace misspelled words in a string?  Use the –Replace operator, for example: $s = "The calander says there are five calendar days left in the callander" $s -replace "calander|callander",&...

Scripting Guy!Windows PowerShellPowerTip
Dec 11, 2014
Post comments count0
Post likes count0

Use a PowerShell Function to Determine Miles to Go

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about a Windows PowerShell function to determine miles remaining to meet challenge. Microsoft Scripting Guy, Ed Wilson, is here. If you are friends with me on Facebook, you know that in October I accepted a challenge to run a hundred miles before January 31, 2015. I was doing really well until I wa...

Scripting Guy!Windows PowerShellscripting techniques
Dec 10, 2014
Post comments count0
Post likes count0

PowerTip: Use CIM and PowerShell to Find WMI Classes

Doctor Scripto

Summary: Use CIM and Windows PowerShell to find WMI classes related to threads.  How can I use Windows PowerShell to easily find WMI classes that are related to threads?  Use the Get-CimClass cmdlet, and specify a wildcard character for threads: Get-CimClass *thread*

Scripting Guy!Windows PowerShellPowerTip
Dec 10, 2014
Post comments count0
Post likes count0

Use PowerShell and WMI to Explore Threads

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and WMI to explore processes and threads.  Hey, Scripting Guy! I need to find information about threads that are related to a specific process. I am wondering how I can do this by using Windows PowerShell. Can you help me? —CP  Hello CP, Microsoft Scri...

Scripting Guy!Windows PowerShellscripting techniques
Dec 9, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Determine Weeks Between Dates

Doctor Scripto

Summary: Use Windows PowerShell to determine the number of weeks between two dates.  I have a project that is broken into several major components of work. I know the start date of the project and            the end date of the project. How can I use Windows PowerShell to determine the number of weeks between &nbs...

Scripting Guy!Windows PowerShellPowerTip