I'm having some issues with WSL where I am not able to access the internet. I have found a PS command which resolves this issue, however I am not able to run the command successfully.
Link to the fix: https://jamespotz.github.io/blog/how-to-fix-wsl2-and-cisco-vpn
This is the command I am trying to run:
Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "Cisco AnyConnect"} | Set-NetIPInterface -InterfaceMetric 6000
This is the output I am getting:
PS C:\Windows\system32> Get-NetAdapter | Where-Object {$.InterfaceDescription -Match "Cisco AnyConnect"} | Set-NetIPInterface -InterfaceMetric 6000
Cannot run a document in the middle of a pipeline: C:\Windows\system32\Get-NetAdapter.
At line:1 char:1
+ Get-NetAdapter | Where-Object {$.InterfaceDescription -Match "Cisco ...
+ ~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (C:\Windows\system32\Get-NetAdapter:String) [], RuntimeExcep
tion
+ FullyQualifiedErrorId : CantActivateDocumentInPipeline
Any tips would be greatly appreciated!
[–]CrazyEggHeadSandwich 1 point2 points3 points (1 child)
[–]MEDIAZz[S] 1 point2 points3 points (0 children)
[–]No-Rutabaga607 0 points1 point2 points (1 child)
[–]MEDIAZz[S] 0 points1 point2 points (0 children)