netsh persistent vs active route

YaroC 316 Reputation points
2023-04-03T09:55:07.8866667+00:00

Is there a way of checking which routes on given remote systems are set as active only rateher than persistent so they get removed after a reboot? I can't figure how to use netsh to do that as for active store it will also display persistent routes. Also not sure about the meaning of diferent store types like Manual/System/Other.

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,771 Reputation points
    2023-04-04T15:28:41.1433333+00:00

    Hello there, You can use the Get-NetTCPConnection cmdlet in PowerShell to get information about active network connections in Windows, open TCP ports, and running processes that are using the TCP/IP protocol. You can display a list of open (listening) ports on your local computer: Get-NetTCPConnection -State Listen | Select-Object -Property LocalAddress, LocalPort, RemoteAddress, RemotePort, State | Sort-Object LocalPort |ft The Get-NetUDPEndpoint cmdlet is used to get information about UDP ports. Hope this resolves your Query !! --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.