PowerCLI Functions PortMirroring to Wireshark server (Add and Remove)

Version 1

    The web client isn't the best, so when I had to setup a few wireshark monitors for VMs I went looking for PowerCLI solutions. I came across some code from LucD and put them into functions.








    Add-VMwareMirrorPortForward -MirrorSessionName "SessionName" -MirrorDesc "Description or Reason for Mirror" -WireSharkIP "" -vmName "VM_Name" -dvsName "DVS_Name"


    Remove-VMwareMirrorPortForward -mirrowSessionName "SessionName" -dvsName "DVS_Name"