Showing category results for PowerTip

Feb 21, 2016
Post comments count0
Post likes count0

PowerTip: Add Hyper-V network switch to network packet capture session

Doctor Scripto
Doctor Scripto

Summary: Learn how to add a Hyper-V virtual switch as a filter for a remote packet capture session.  How can I use Windows PowerShell to add a Hyper-V Virtual switch as a provider for a remote packet capture session?  Use the Add-NetEventVmSwitch cmdlet and specify the name of the switch. In the following commands, I create a new event session, sp...

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

PowerTip: Add virtual network adapter to packet capture session

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to add a virtual network adapter to a network packet capture session.  How can I use Windows PowerShell to add a virtual network adapter to a network packet capture session?  Use the Add-NetEventVmNetworkAdapter cmdlet and specify the name of the adapter. In the following example, I create a net event se...

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

PowerTip: Use PowerShell to add ETW provider to a session

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to add an ETW provider to a session.  How can I use Windows PowerShell to add an ETW provider to a session?  Use the Add-NetEventProvider cmdlet and specify the name of the session and the provider. In the following example, first a net event session is created, and then the TCPIP ETW provider is added to the sessio...

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

PowerTip: Add network adapter to packet capture session

Doctor Scripto
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
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