{"id":55,"date":"2013-09-06T02:40:14","date_gmt":"2013-09-06T02:40:14","guid":{"rendered":"http:\/\/www.edrockwell.com\/blog\/?p=55"},"modified":"2026-07-02T16:57:33","modified_gmt":"2026-07-02T16:57:33","slug":"connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it","status":"publish","type":"post","link":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/","title":{"rendered":"Connect remotely to a computer with powershell and get ipconfig \/all from it"},"content":{"rendered":"<p>Are you looking to connect remotely to a computer and run powershell commands. Below is a simple one liner that will connect to a computer and get the ipconfig \/all and display it on your computer.<\/p>\n<p>If it doesn&#8217;t work, you may have to enable WinRM on the remote computer. This can be done with group policy or simply typing\u00a0<strong>Winrm quickconfig\u00a0<\/strong>at the command prompt on the computer you want to connect to. This has to be done before hand so there may be some prep involved but when you have Winrm enabled on all your computers, you can connect with powershell and run all sorts of commands.<\/p>\n<p>Here is<\/p>\n<pre lang=\"POWERSHELL\">Invoke-Command -Computer <EnterComputerNameHere> -ScriptBlock {ipconfig \/all}\u00a0<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Are you looking to connect remotely to a computer and run powershell commands. Below is a simple one liner that will connect to a computer and get the ipconfig \/all and display it on your computer. If it doesn&#8217;t work, you may have to enable WinRM on the remote computer. This can be done with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[35,34,21,36],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-powershell","tag-connect-remotely","tag-invoke-command","tag-powershell-2","tag-winrm"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Are you looking to connect remotely to a computer and run powershell commands. Below is a simple one liner that will connect to a computer and get the ipconfig \/all and display it on your computer. If it doesn&#039;t work, you may have to enable WinRM on the remote computer. This can be done with\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ed Rockwell\"\/>\n\t<meta name=\"keywords\" content=\"connect remotely,invoke-command,powershell,winrm\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"System Admin [RESOLVED] | How To: Make My DevOps Life Easier\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Connect remotely to a computer with powershell and get ipconfig \/all from it | System Admin [RESOLVED]\" \/>\n\t\t<meta property=\"og:description\" content=\"Are you looking to connect remotely to a computer and run powershell commands. Below is a simple one liner that will connect to a computer and get the ipconfig \/all and display it on your computer. If it doesn&#039;t work, you may have to enable WinRM on the remote computer. This can be done with\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2013-09-06T02:40:14+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-07-02T16:57:33+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Connect remotely to a computer with powershell and get ipconfig \/all from it | System Admin [RESOLVED]\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Are you looking to connect remotely to a computer and run powershell commands. Below is a simple one liner that will connect to a computer and get the ipconfig \/all and display it on your computer. If it doesn&#039;t work, you may have to enable WinRM on the remote computer. This can be done with\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\\\/#article\",\"name\":\"Connect remotely to a computer with powershell and get ipconfig \\\/all from it | System Admin [RESOLVED]\",\"headline\":\"Connect remotely to a computer with powershell and get ipconfig \\\/all from it\",\"author\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#organization\"},\"datePublished\":\"2013-09-06T02:40:14+00:00\",\"dateModified\":\"2026-07-02T16:57:33+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\\\/#webpage\"},\"articleSection\":\"PowerShell, connect remotely, invoke-command, Powershell, winrm\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/category\\\/powershell\\\/#listItem\",\"name\":\"PowerShell\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/category\\\/powershell\\\/#listItem\",\"position\":2,\"name\":\"PowerShell\",\"item\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/category\\\/powershell\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\\\/#listItem\",\"name\":\"Connect remotely to a computer with powershell and get ipconfig \\\/all from it\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\\\/#listItem\",\"position\":3,\"name\":\"Connect remotely to a computer with powershell and get ipconfig \\\/all from it\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/category\\\/powershell\\\/#listItem\",\"name\":\"PowerShell\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#organization\",\"name\":\"System Admin [RESOLVED]\",\"description\":\"How To: Make My DevOps Life Easier\",\"url\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"Ed Rockwell\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Ed Rockwell\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\\\/#webpage\",\"url\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\\\/\",\"name\":\"Connect remotely to a computer with powershell and get ipconfig \\\/all from it | System Admin [RESOLVED]\",\"description\":\"Are you looking to connect remotely to a computer and run powershell commands. Below is a simple one liner that will connect to a computer and get the ipconfig \\\/all and display it on your computer. If it doesn't work, you may have to enable WinRM on the remote computer. This can be done with\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2013-09-06T02:40:14+00:00\",\"dateModified\":\"2026-07-02T16:57:33+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/\",\"name\":\"System Admin [RESOLVED]\",\"description\":\"How To: Make My DevOps Life Easier\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Connect remotely to a computer with powershell and get ipconfig \/all from it | System Admin [RESOLVED]","description":"Are you looking to connect remotely to a computer and run powershell commands. Below is a simple one liner that will connect to a computer and get the ipconfig \/all and display it on your computer. If it doesn't work, you may have to enable WinRM on the remote computer. This can be done with","canonical_url":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/","robots":"max-image-preview:large","keywords":"connect remotely,invoke-command,powershell,winrm","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#article","name":"Connect remotely to a computer with powershell and get ipconfig \/all from it | System Admin [RESOLVED]","headline":"Connect remotely to a computer with powershell and get ipconfig \/all from it","author":{"@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.edrockwell.com\/blog\/#organization"},"datePublished":"2013-09-06T02:40:14+00:00","dateModified":"2026-07-02T16:57:33+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#webpage"},"isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#webpage"},"articleSection":"PowerShell, connect remotely, invoke-command, Powershell, winrm"},{"@type":"BreadcrumbList","@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.edrockwell.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/category\/powershell\/#listItem","name":"PowerShell"}},{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/category\/powershell\/#listItem","position":2,"name":"PowerShell","item":"https:\/\/www.edrockwell.com\/blog\/category\/powershell\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#listItem","name":"Connect remotely to a computer with powershell and get ipconfig \/all from it"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#listItem","position":3,"name":"Connect remotely to a computer with powershell and get ipconfig \/all from it","previousItem":{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/category\/powershell\/#listItem","name":"PowerShell"}}]},{"@type":"Organization","@id":"https:\/\/www.edrockwell.com\/blog\/#organization","name":"System Admin [RESOLVED]","description":"How To: Make My DevOps Life Easier","url":"https:\/\/www.edrockwell.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author","url":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/","name":"Ed Rockwell","image":{"@type":"ImageObject","@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Ed Rockwell"}},{"@type":"WebPage","@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#webpage","url":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/","name":"Connect remotely to a computer with powershell and get ipconfig \/all from it | System Admin [RESOLVED]","description":"Are you looking to connect remotely to a computer and run powershell commands. Below is a simple one liner that will connect to a computer and get the ipconfig \/all and display it on your computer. If it doesn't work, you may have to enable WinRM on the remote computer. This can be done with","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#breadcrumblist"},"author":{"@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author"},"datePublished":"2013-09-06T02:40:14+00:00","dateModified":"2026-07-02T16:57:33+00:00"},{"@type":"WebSite","@id":"https:\/\/www.edrockwell.com\/blog\/#website","url":"https:\/\/www.edrockwell.com\/blog\/","name":"System Admin [RESOLVED]","description":"How To: Make My DevOps Life Easier","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.edrockwell.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"System Admin [RESOLVED] | How To: Make My DevOps Life Easier","og:type":"article","og:title":"Connect remotely to a computer with powershell and get ipconfig \/all from it | System Admin [RESOLVED]","og:description":"Are you looking to connect remotely to a computer and run powershell commands. Below is a simple one liner that will connect to a computer and get the ipconfig \/all and display it on your computer. If it doesn't work, you may have to enable WinRM on the remote computer. This can be done with","og:url":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/","article:published_time":"2013-09-06T02:40:14+00:00","article:modified_time":"2026-07-02T16:57:33+00:00","twitter:card":"summary","twitter:title":"Connect remotely to a computer with powershell and get ipconfig \/all from it | System Admin [RESOLVED]","twitter:description":"Are you looking to connect remotely to a computer and run powershell commands. Below is a simple one liner that will connect to a computer and get the ipconfig \/all and display it on your computer. If it doesn't work, you may have to enable WinRM on the remote computer. This can be done with"},"aioseo_meta_data":{"post_id":"55","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-15 23:07:13","updated":"2026-07-02 17:24:20","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.edrockwell.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.edrockwell.com\/blog\/category\/powershell\/\" title=\"PowerShell\">PowerShell<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tConnect remotely to a computer with powershell and get ipconfig \/all from it\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.edrockwell.com\/blog"},{"label":"PowerShell","link":"https:\/\/www.edrockwell.com\/blog\/category\/powershell\/"},{"label":"Connect remotely to a computer with powershell and get ipconfig \/all from it","link":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/"}],"_links":{"self":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":5,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":57,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions\/57"}],"wp:attachment":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}