{"id":13859,"date":"2026-10-27T23:56:08","date_gmt":"2026-10-27T23:56:08","guid":{"rendered":"https:\/\/resizemyimg.com\/blog\/?p=13859"},"modified":"2026-10-27T23:58:11","modified_gmt":"2026-10-27T23:58:11","slug":"how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues","status":"publish","type":"post","link":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/","title":{"rendered":"How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues"},"content":{"rendered":"<p><strong>Use PowerShell for detailed checks and Command Prompt for fast fallbacks<\/strong> when a Windows PC cannot reach a server, map a shared drive, or resolve a DNS name. Microsoft includes tools such as <code>Test-NetConnection<\/code>, <code>Resolve-DnsName<\/code>, <code>net use<\/code>, and <code>nslookup<\/code> in Windows, so most checks need no extra software <a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/nettcpip\/test-netconnection\" rel=\"nofollow\">[source: Microsoft]<\/a>.<\/p>\n<p><strong>TLDR:<\/strong> An administrator can check active connections with <code>Get-NetTCPConnection<\/code> or <code>netstat -ano<\/code>, map drives with <code>New-PSDrive<\/code> or <code>net use<\/code>, and test DNS with <code>Resolve-DnsName<\/code> or <code>nslookup<\/code>. For example, if 38 of 50 users cannot open <code>\\\\fileserver\\finance<\/code>, the admin can test port 445, map the share, and confirm DNS in under five minutes. If DNS is wrong, the fix may be as simple as clearing the local cache with <code>ipconfig \/flushdns<\/code>. PowerShell gives richer output, while Command Prompt is quick and familiar.<\/p>\n<h2>Checking active network connections<\/h2>\n<p>PowerShell is usually the cleaner choice for finding live connections. It returns objects, not just text. That makes filtering easier and faster.<\/p>\n<p>To list active TCP connections, an administrator can run:<\/p>\n<pre><code>Get-NetTCPConnection<\/code><\/pre>\n<p>To see only established sessions:<\/p>\n<pre><code>Get-NetTCPConnection -State Established<\/code><\/pre>\n<p>To check whether a server answers on a specific port, this command is often the fastest:<\/p>\n<pre><code>Test-NetConnection fileserver01 -Port 445<\/code><\/pre>\n<p><strong>Port 445<\/strong> matters because Windows file sharing uses SMB. If that port fails, a mapped drive will likely fail too. Honestly, it feels like half of \u201cthe drive is gone\u201d tickets start with this one blocked port.<\/p>\n<p>Command Prompt still helps. It is blunt, but reliable:<\/p>\n<pre><code>netstat -ano<\/code><\/pre>\n<p>This shows local addresses, remote addresses, ports, connection states, and process IDs. If a process looks suspicious, the process ID can be matched in Task Manager. For a quick reachability test, old tools still work:<\/p>\n<ul>\n<li><code>ping servername<\/code> checks basic response.<\/li>\n<li><code>tracert servername<\/code> shows the route traffic takes.<\/li>\n<li><code>pathping servername<\/code> mixes route and packet loss checks.<\/li>\n<\/ul>\n<img loading=\"lazy\" decoding=\"async\" width=\"1080\" height=\"608\" src=\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/aerial-photography-of-ships-on-calm-sea-under-dramatic-clouds-during-daytime-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/aerial-photography-of-ships-on-calm-sea-under-dramatic-clouds-during-daytime-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg 1080w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/aerial-photography-of-ships-on-calm-sea-under-dramatic-clouds-during-daytime-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes-300x169.jpg 300w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/aerial-photography-of-ships-on-calm-sea-under-dramatic-clouds-during-daytime-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes-1024x576.jpg 1024w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/aerial-photography-of-ships-on-calm-sea-under-dramatic-clouds-during-daytime-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes-575x324.jpg 575w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/aerial-photography-of-ships-on-calm-sea-under-dramatic-clouds-during-daytime-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes-768x432.jpg 768w\" sizes=\"(max-width: 1080px) 100vw, 1080px\" \/>\n<h2>Mapping network drives with PowerShell<\/h2>\n<p>PowerShell can map a drive with <code>New-PSDrive<\/code>. For a temporary drive mapping, the command looks like this:<\/p>\n<pre><code>New-PSDrive -Name Z -PSProvider FileSystem -Root \"\\\\fileserver01\\finance\"<\/code><\/pre>\n<p>For a persistent mapping that survives sign out and restart, this version is better:<\/p>\n<pre><code>New-PSDrive -Name Z -PSProvider FileSystem -Root \"\\\\fileserver01\\finance\" -Persist<\/code><\/pre>\n<p>If different credentials are needed, the admin can collect them first:<\/p>\n<pre><code>$cred = Get-Credential\nNew-PSDrive -Name Z -PSProvider FileSystem -Root \"\\\\fileserver01\\finance\" -Credential $cred -Persist<\/code><\/pre>\n<p>To remove the drive later:<\/p>\n<pre><code>Remove-PSDrive -Name Z<\/code><\/pre>\n<p>The catch is that <code>-Persist<\/code> can act strangely if PowerShell is started as administrator. The mapped drive may appear in the admin session but not in the user\u2019s File Explorer. That wastes time and makes the fix look broken. Running the command in the user\u2019s normal session avoids that headache.<\/p>\n<h2>Mapping drives with Command Prompt<\/h2>\n<p>Command Prompt uses <code>net use<\/code>. It is simple and still widely used in login scripts.<\/p>\n<pre><code>net use Z: \\\\fileserver01\\finance<\/code><\/pre>\n<p>To make it persistent:<\/p>\n<pre><code>net use Z: \\\\fileserver01\\finance \/persistent:yes<\/code><\/pre>\n<p>To map with a specific user account:<\/p>\n<pre><code>net use Z: \\\\fileserver01\\finance \/user:DOMAIN\\j.smith *<\/code><\/pre>\n<p>The asterisk prompts for a password without showing it on screen. To delete the mapping:<\/p>\n<pre><code>net use Z: \/delete<\/code><\/pre>\n<p>To list current mapped drives:<\/p>\n<pre><code>net use<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" width=\"1080\" height=\"608\" src=\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/03\/a-blue-background-with-a-colorful-square-icon-windows-file-explorer-minecraft-server-folder-jar-file.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/03\/a-blue-background-with-a-colorful-square-icon-windows-file-explorer-minecraft-server-folder-jar-file.jpg 1080w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/03\/a-blue-background-with-a-colorful-square-icon-windows-file-explorer-minecraft-server-folder-jar-file-300x169.jpg 300w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/03\/a-blue-background-with-a-colorful-square-icon-windows-file-explorer-minecraft-server-folder-jar-file-1024x576.jpg 1024w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/03\/a-blue-background-with-a-colorful-square-icon-windows-file-explorer-minecraft-server-folder-jar-file-575x324.jpg 575w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/03\/a-blue-background-with-a-colorful-square-icon-windows-file-explorer-minecraft-server-folder-jar-file-768x432.jpg 768w\" sizes=\"(max-width: 1080px) 100vw, 1080px\" \/>\n<h2>Diagnosing DNS issues<\/h2>\n<p>DNS problems can look like network failures. A user may say the server is down, but the PC may simply be resolving the wrong address.<\/p>\n<p>PowerShell offers <code>Resolve-DnsName<\/code>:<\/p>\n<pre><code>Resolve-DnsName fileserver01<\/code><\/pre>\n<p>To query a specific DNS server:<\/p>\n<pre><code>Resolve-DnsName fileserver01 -Server 10.0.0.10<\/code><\/pre>\n<p>This helps compare results. If the local DNS server returns one IP address and another DNS server returns a different one, the record may be stale.<\/p>\n<p>Command Prompt uses <code>nslookup<\/code>:<\/p>\n<pre><code>nslookup fileserver01<\/code><\/pre>\n<p>To query a set DNS server:<\/p>\n<pre><code>nslookup fileserver01 10.0.0.10<\/code><\/pre>\n<p>Several <code>ipconfig<\/code> commands are useful too:<\/p>\n<ul>\n<li><code>ipconfig \/all<\/code> shows DNS servers, gateway, and adapter details.<\/li>\n<li><code>ipconfig \/displaydns<\/code> shows cached DNS records.<\/li>\n<li><code>ipconfig \/flushdns<\/code> clears the local DNS cache.<\/li>\n<li><code>ipconfig \/registerdns<\/code> refreshes DNS registration for the computer.<\/li>\n<\/ul>\n<p>If a browser opens a site but an app fails by server name, the admin should test both the short name and the full domain name:<\/p>\n<pre><code>Resolve-DnsName fileserver01\nResolve-DnsName fileserver01.company.local<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" width=\"1080\" height=\"721\" src=\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/04\/photo-of-computer-cables-cisco-cli-enable-secret-command-encrypted-password-output-privileged-mode-prompt-1.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/04\/photo-of-computer-cables-cisco-cli-enable-secret-command-encrypted-password-output-privileged-mode-prompt-1.jpg 1080w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/04\/photo-of-computer-cables-cisco-cli-enable-secret-command-encrypted-password-output-privileged-mode-prompt-1-300x200.jpg 300w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/04\/photo-of-computer-cables-cisco-cli-enable-secret-command-encrypted-password-output-privileged-mode-prompt-1-1024x684.jpg 1024w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/04\/photo-of-computer-cables-cisco-cli-enable-secret-command-encrypted-password-output-privileged-mode-prompt-1-575x384.jpg 575w, https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/04\/photo-of-computer-cables-cisco-cli-enable-secret-command-encrypted-password-output-privileged-mode-prompt-1-768x513.jpg 768w\" sizes=\"(max-width: 1080px) 100vw, 1080px\" \/>\n<h2>A simple triage flow<\/h2>\n<ol>\n<li><strong>Check the name:<\/strong> Run <code>Resolve-DnsName<\/code> or <code>nslookup<\/code>.<\/li>\n<li><strong>Check the route:<\/strong> Run <code>ping<\/code>, then <code>tracert<\/code> if needed.<\/li>\n<li><strong>Check the port:<\/strong> Run <code>Test-NetConnection server -Port 445<\/code>.<\/li>\n<li><strong>Map the drive:<\/strong> Use <code>New-PSDrive<\/code> or <code>net use<\/code>.<\/li>\n<li><strong>Clear bad cache:<\/strong> Run <code>ipconfig \/flushdns<\/code> if DNS looks stale.<\/li>\n<\/ol>\n<h2>FAQ<\/h2>\n<h3>Which is better, PowerShell or Command Prompt?<\/h3>\n<p><strong>PowerShell<\/strong> is better for filtering, scripting, and detailed output. <strong>Command Prompt<\/strong> is better for quick checks and older scripts.<\/p>\n<h3>Why does a mapped drive work for one user but not another?<\/h3>\n<p>The users may have different permissions, cached credentials, or session types. Admin and standard user sessions can also see different mapped drives.<\/p>\n<h3>What port should be tested for Windows file shares?<\/h3>\n<p><strong>Port 445<\/strong> should be tested first. It is used by SMB, which handles most Windows file sharing.<\/p>\n<h3>Does flushing DNS fix every name problem?<\/h3>\n<p>No. It only clears the local cache. If the DNS server has the wrong record, the server-side record must be fixed.<\/p>\n<h3>What is the fastest first command for DNS trouble?<\/h3>\n<p><code>Resolve-DnsName servername<\/code> in PowerShell or <code>nslookup servername<\/code> in Command Prompt gives a quick answer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><strong>Use PowerShell for detailed checks and Command Prompt for fast fallbacks<\/strong> when a Windows PC cannot reach a server, map a shared drive, or resolve a DNS name. Microsoft includes tools such as <code>Test-NetConnection<\/code>, <code>Resolve-DnsName<\/code>, <code>net use<\/code>, and <code>nslookup<\/code> in Windows, so most checks need no extra software <a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/nettcpip\/test-netconnection\" rel=\"nofollow\">[source: Microsoft]<\/a>. <\/p>\n<p class=\"read-more-container\"><a href=\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/\" class=\"read-more button\">Read more<\/a><\/p>\n","protected":false},"author":91,"featured_media":11613,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13859","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues\" \/>\n<meta property=\"og:description\" content=\"Use PowerShell for detailed checks and Command Prompt for fast fallbacks when a Windows PC cannot reach a server, map a shared drive, or resolve a DNS name. Microsoft includes tools such as Test-NetConnection, Resolve-DnsName, net use, and nslookup in Windows, so most checks need no extra software [source: Microsoft]. Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/\" \/>\n<meta property=\"og:site_name\" content=\"Resize my Image Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webfactoryltd\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-27T23:56:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-27T23:58:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/graphical-user-interface-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"607\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jame Miller\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webfactoryltd\" \/>\n<meta name=\"twitter:site\" content=\"@webfactoryltd\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jame Miller\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/\"},\"author\":{\"name\":\"Jame Miller\",\"@id\":\"https:\/\/resizemyimg.com\/blog\/#\/schema\/person\/4bece8cd1b5bcd61a4e5dab002eb7dca\"},\"headline\":\"How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues\",\"datePublished\":\"2026-10-27T23:56:08+00:00\",\"dateModified\":\"2026-10-27T23:58:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/\"},\"wordCount\":744,\"publisher\":{\"@id\":\"https:\/\/resizemyimg.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/graphical-user-interface-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg\",\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/\",\"url\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/\",\"name\":\"How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues\",\"isPartOf\":{\"@id\":\"https:\/\/resizemyimg.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/graphical-user-interface-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg\",\"datePublished\":\"2026-10-27T23:56:08+00:00\",\"dateModified\":\"2026-10-27T23:58:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#primaryimage\",\"url\":\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/graphical-user-interface-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg\",\"contentUrl\":\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/graphical-user-interface-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg\",\"width\":1080,\"height\":607},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/resizemyimg.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/resizemyimg.com\/blog\/#website\",\"url\":\"https:\/\/resizemyimg.com\/blog\/\",\"name\":\"Resize my Image Blog\",\"description\":\"News, insights, tips&amp;tricks on image related business &amp; SaaS\",\"publisher\":{\"@id\":\"https:\/\/resizemyimg.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/resizemyimg.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/resizemyimg.com\/blog\/#organization\",\"name\":\"WebFactory Ltd\",\"url\":\"https:\/\/resizemyimg.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/resizemyimg.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2019\/12\/webfactory_icon.png\",\"contentUrl\":\"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2019\/12\/webfactory_icon.png\",\"width\":300,\"height\":300,\"caption\":\"WebFactory Ltd\"},\"image\":{\"@id\":\"https:\/\/resizemyimg.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webfactoryltd\/\",\"https:\/\/x.com\/webfactoryltd\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/resizemyimg.com\/blog\/#\/schema\/person\/4bece8cd1b5bcd61a4e5dab002eb7dca\",\"name\":\"Jame Miller\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/resizemyimg.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f60a3114f608fcfdd6b15a13f37f24b2?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f60a3114f608fcfdd6b15a13f37f24b2?s=96&d=monsterid&r=g\",\"caption\":\"Jame Miller\"},\"description\":\"I'm Jame Miller, a cybersecurity analyst and blogger. Sharing knowledge on online security, data protection, and privacy issues is what I do best.\",\"url\":\"https:\/\/resizemyimg.com\/blog\/author\/jamesm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/","og_locale":"en_US","og_type":"article","og_title":"How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues","og_description":"Use PowerShell for detailed checks and Command Prompt for fast fallbacks when a Windows PC cannot reach a server, map a shared drive, or resolve a DNS name. Microsoft includes tools such as Test-NetConnection, Resolve-DnsName, net use, and nslookup in Windows, so most checks need no extra software [source: Microsoft]. Read more","og_url":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/","og_site_name":"Resize my Image Blog","article_publisher":"https:\/\/www.facebook.com\/webfactoryltd\/","article_published_time":"2026-10-27T23:56:08+00:00","article_modified_time":"2026-10-27T23:58:11+00:00","og_image":[{"width":1080,"height":607,"url":"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/graphical-user-interface-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg","type":"image\/jpeg"}],"author":"Jame Miller","twitter_card":"summary_large_image","twitter_creator":"@webfactoryltd","twitter_site":"@webfactoryltd","twitter_misc":{"Written by":"Jame Miller","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#article","isPartOf":{"@id":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/"},"author":{"name":"Jame Miller","@id":"https:\/\/resizemyimg.com\/blog\/#\/schema\/person\/4bece8cd1b5bcd61a4e5dab002eb7dca"},"headline":"How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues","datePublished":"2026-10-27T23:56:08+00:00","dateModified":"2026-10-27T23:58:11+00:00","mainEntityOfPage":{"@id":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/"},"wordCount":744,"publisher":{"@id":"https:\/\/resizemyimg.com\/blog\/#organization"},"image":{"@id":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#primaryimage"},"thumbnailUrl":"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/graphical-user-interface-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg","articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/","url":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/","name":"How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues","isPartOf":{"@id":"https:\/\/resizemyimg.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#primaryimage"},"image":{"@id":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#primaryimage"},"thumbnailUrl":"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/graphical-user-interface-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg","datePublished":"2026-10-27T23:56:08+00:00","dateModified":"2026-10-27T23:58:11+00:00","breadcrumb":{"@id":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#primaryimage","url":"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/graphical-user-interface-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg","contentUrl":"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2026\/05\/graphical-user-interface-global-supply-chain-map-digital-network-connections-cargo-ships-and-planes.jpg","width":1080,"height":607},{"@type":"BreadcrumbList","@id":"https:\/\/resizemyimg.com\/blog\/how-to-use-powershell-and-command-prompt-to-check-network-connections-map-drives-and-diagnose-dns-issues\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/resizemyimg.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use PowerShell and Command Prompt to Check Network Connections, Map Drives, and Diagnose DNS Issues"}]},{"@type":"WebSite","@id":"https:\/\/resizemyimg.com\/blog\/#website","url":"https:\/\/resizemyimg.com\/blog\/","name":"Resize my Image Blog","description":"News, insights, tips&amp;tricks on image related business &amp; SaaS","publisher":{"@id":"https:\/\/resizemyimg.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/resizemyimg.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/resizemyimg.com\/blog\/#organization","name":"WebFactory Ltd","url":"https:\/\/resizemyimg.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/resizemyimg.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2019\/12\/webfactory_icon.png","contentUrl":"https:\/\/resizemyimg.com\/blog\/wp-content\/uploads\/2019\/12\/webfactory_icon.png","width":300,"height":300,"caption":"WebFactory Ltd"},"image":{"@id":"https:\/\/resizemyimg.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webfactoryltd\/","https:\/\/x.com\/webfactoryltd"]},{"@type":"Person","@id":"https:\/\/resizemyimg.com\/blog\/#\/schema\/person\/4bece8cd1b5bcd61a4e5dab002eb7dca","name":"Jame Miller","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/resizemyimg.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f60a3114f608fcfdd6b15a13f37f24b2?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f60a3114f608fcfdd6b15a13f37f24b2?s=96&d=monsterid&r=g","caption":"Jame Miller"},"description":"I'm Jame Miller, a cybersecurity analyst and blogger. Sharing knowledge on online security, data protection, and privacy issues is what I do best.","url":"https:\/\/resizemyimg.com\/blog\/author\/jamesm\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/posts\/13859"}],"collection":[{"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/comments?post=13859"}],"version-history":[{"count":1,"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/posts\/13859\/revisions"}],"predecessor-version":[{"id":13884,"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/posts\/13859\/revisions\/13884"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/media\/11613"}],"wp:attachment":[{"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/media?parent=13859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/categories?post=13859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resizemyimg.com\/blog\/wp-json\/wp\/v2\/tags?post=13859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}