{"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":"2013-09-06T02:42:32","modified_gmt":"2013-09-06T02:42:32","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":"open","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":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Connect remotely to a computer with powershell and get ipconfig \/all from it - System Admin [RESOLVED]<\/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:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Connect remotely to a computer with powershell and get ipconfig \/all from it - System Admin [RESOLVED]\" \/>\n<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&#8217;t work, you may have to enable WinRM on the remote computer. This can be done with [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/\" \/>\n<meta property=\"og:site_name\" content=\"System Admin [RESOLVED]\" \/>\n<meta property=\"article:published_time\" content=\"2013-09-06T02:40:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-09-06T02:42:32+00:00\" \/>\n<meta name=\"author\" content=\"Ed Rockwell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EddieRock\" \/>\n<meta name=\"twitter:site\" content=\"@EddieRock\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ed Rockwell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@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\",\"isPartOf\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/\"},\"author\":{\"name\":\"Ed Rockwell\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\"},\"headline\":\"Connect remotely to a computer with powershell and get ipconfig \/all from it\",\"datePublished\":\"2013-09-06T02:40:14+00:00\",\"dateModified\":\"2013-09-06T02:42:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/\"},\"wordCount\":125,\"commentCount\":0,\"keywords\":[\"connect remotely\",\"invoke-command\",\"Powershell\",\"winrm\"],\"articleSection\":[\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/\",\"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]\",\"isPartOf\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#website\"},\"datePublished\":\"2013-09-06T02:40:14+00:00\",\"dateModified\":\"2013-09-06T02:42:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.edrockwell.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connect remotely to a computer with powershell and get ipconfig \/all from it\"}]},{\"@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\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.edrockwell.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\",\"name\":\"Ed Rockwell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"caption\":\"Ed Rockwell\"},\"sameAs\":[\"http:\/\/www.therockwells.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Connect remotely to a computer with powershell and get ipconfig \/all from it - System Admin [RESOLVED]","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:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/","og_locale":"en_US","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&#8217;t work, you may have to enable WinRM on the remote computer. This can be done with [&hellip;]","og_url":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/","og_site_name":"System Admin [RESOLVED]","article_published_time":"2013-09-06T02:40:14+00:00","article_modified_time":"2013-09-06T02:42:32+00:00","author":"Ed Rockwell","twitter_card":"summary_large_image","twitter_creator":"@EddieRock","twitter_site":"@EddieRock","twitter_misc":{"Written by":"Ed Rockwell","Est. reading time":"1 minute"},"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","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/"},"author":{"name":"Ed Rockwell","@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7"},"headline":"Connect remotely to a computer with powershell and get ipconfig \/all from it","datePublished":"2013-09-06T02:40:14+00:00","dateModified":"2013-09-06T02:42:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/"},"wordCount":125,"commentCount":0,"keywords":["connect remotely","invoke-command","Powershell","winrm"],"articleSection":["PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/","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]","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/#website"},"datePublished":"2013-09-06T02:40:14+00:00","dateModified":"2013-09-06T02:42:32+00:00","author":{"@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7"},"breadcrumb":{"@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.edrockwell.com\/blog\/connect-remotely-to-a-computer-with-powershell-and-get-ipconfig-all-from-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.edrockwell.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Connect remotely to a computer with powershell and get ipconfig \/all from it"}]},{"@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","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.edrockwell.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7","name":"Ed Rockwell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","caption":"Ed Rockwell"},"sameAs":["http:\/\/www.therockwells.net"]}]}},"_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}]}}