{"id":41394,"date":"2023-11-22T07:38:02","date_gmt":"2023-11-22T07:38:02","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=41394"},"modified":"2023-11-22T07:38:04","modified_gmt":"2023-11-22T07:38:04","slug":"windows-troubleshooting-administrator-guide","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/windows-troubleshooting-administrator-guide\/","title":{"rendered":"Windows Troubleshooting: Administrator Guide"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How to check for used ports on Windows?<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Using Command Prompt<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Netstat<\/strong>: This command displays active connections and listening ports.\n<ul class=\"wp-block-list\">\n<li>Open Command Prompt (you can search for <code>cmd<\/code> in the Start menu).<\/li>\n\n\n\n<li>Type <code>netstat -ano<\/code> and press Enter. This will list all ports in use along with the process IDs (PIDs) using them.<\/li>\n\n\n\n<li>To find a specific port, you can use <code>netstat -ano | findstr \"PORT_NUMBER\"<\/code>, replacing <code>PORT_NUMBER<\/code> with the port you&#8217;re interested in.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>TCPView<\/strong>: This is a graphical utility from Sysinternals that provides a more detailed view of TCP and UDP endpoints. You need to download it from Microsoft&#8217;s website.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Using PowerShell<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open PowerShell (you can search for <code>powershell<\/code> in the Start menu).<\/li>\n\n\n\n<li>Run the following command: <code>Get-NetTCPConnection | Where-Object { $_.LocalPort -eq PORT_NUMBER }<\/code>, replacing <code>PORT_NUMBER<\/code> with the port you want to check.<\/li>\n\n\n\n<li>Alternatively, you can use <code>Get-Process -Id (Get-NetTCPConnection -LocalPort PORT_NUMBER).OwningProcess<\/code> to get more information about the process that&#8217;s using the port.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Using Resource Monitor<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Resource Monitor, which can be found by searching in the Start menu or under the &#8220;Performance&#8221; tab of Task Manager.<\/li>\n\n\n\n<li>Go to the &#8220;Network&#8221; tab.<\/li>\n\n\n\n<li>Look at the &#8220;Listening Ports&#8221; section to see which ports are in use and by which processes.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"521\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/11\/image-41-1024x521.png\" alt=\"\" class=\"wp-image-41395\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/11\/image-41-1024x521.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/11\/image-41-300x153.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/11\/image-41-768x391.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/11\/image-41-1536x781.png 1536w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/11\/image-41.png 1998w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>How to check for used ports on Windows? Using Command Prompt Using PowerShell Using Resource Monitor<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-41394","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=41394"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41394\/revisions"}],"predecessor-version":[{"id":41396,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41394\/revisions\/41396"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=41394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=41394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=41394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}