发布于 2020-01-25 15:30:09
这段代码的原作者是@Scepticalist。
从powershell控制台运行此命令。它将将当前会话的文化更改为en-US。
function Set-CultureWin([System.Globalization.CultureInfo] $culture) { [System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture ; [System.Threading.Thread]::CurrentThread.CurrentCulture = $culture } ; Set-CultureWin en-US ; [system.threading.thread]::currentthread.currentculture
然后,您必须使用命令Get-NetTCPConnection
而不是netstat。有关其使用情况,请参阅https://learn.microsoft.com/en-us/powershell/module/nettcpip/get-nettcpconnection?view=win10-ps
https://stackoverflow.com/questions/59909992
复制相似问题