Showing archive results for February 2016

Feb 20, 2016
Post comments count0
Post likes count0

PowerTip: Add network adapter to packet capture session

Doctor Scripto

Summary: Learn to use Windows PowerShell to add a network adapter to a capture session.  How can I use Windows PowerShell to add a network adapter to a packet capture session? Use the Add-NetEventNetworkAdapter cmdlet and specify the name of the adapter. In the following example, I create a network capture session, add a provider, and then add the...

Scripting Guy!Windows PowerShellPowerTip
Feb 19, 2016
Post comments count0
Post likes count0

PowerTip: Set ErrorActionPreference to original value

Doctor Scripto

Summary: Cloud & Datacenter Management MVP, Thomas Rayner, shows how to work with the ErrorActionPreference variable in Windows PowerShell.  I have a script that requires me to change the ErrorActionPreference variable, but how can I set it to its original value after the script is done?  Store the current value of $ErrorActionPreference and s...

Scripting Guy!Windows PowerShellPowerTip
Feb 19, 2016
Post comments count0
Post likes count0

Migrate Windows CA from CSP to KSP and from SHA-1 to SHA-256: Part 5

Doctor Scripto

Summary: Thomas Rayner, Microsoft Cloud & Datacenter Management MVP, shows how to modify the registry for SHA-256 as a part of migrating a Windows certification authority from CSP to KSP and from SHA-1 to SHA-256. Hello! I’m Thomas Rayner, a proud Cloud & Datacenter Management Microsoft MVP, filling in for The Scripting Guy this week. You ...

Scripting Guy!Windows PowerShellguest blogger
Feb 18, 2016
Post comments count0
Post likes count0

PowerTip: Count backwards in array

Doctor Scripto

Summary: Cloud & Datacenter Management MVP, Thomas Rayner, shows how to count backwards in a Windows PowerShell array.  I know I can access the first, second, and third items in an array by using $Array[0], $Array[1], and $Array[2], but how can I count backwards?  Use negative numbers, for example: $Array = @('first','second','third') $Array[0...

Scripting Guy!Windows PowerShellPowerTip
Feb 18, 2016
Post comments count0
Post likes count0

Migrate Windows CA from CSP to KSP and from SHA-1 to SHA-256: Part 4

Doctor Scripto

Summary: Thomas Rayner, Microsoft Cloud & Datacenter Management MVP, shows how to import a certificate into a KSP and bring it into the certificate store. Hello! I’m Thomas Rayner, a proud Cloud & Datacenter Management Microsoft MVP, filling in for The Scripting Guy this week. You can find me on Twitter (@MrThomasRayner) or on my blog, Wor...

Scripting Guy!Windows PowerShellguest blogger