Scripting Blog [archived]

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

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

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

PowerTip: Add virtual network adapter to packet capture session

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

PowerTip: Use PowerShell to add ETW provider to a session

Summary: Use Windows PowerShell to add an ETW provider to a session. (image)  How can I use Windows PowerShell to add an ETW provider to a session? (image)  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...

PowerTip: Add network adapter to packet capture session

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