{"id":45,"date":"2013-08-13T21:17:05","date_gmt":"2013-08-13T21:17:05","guid":{"rendered":"http:\/\/www.edrockwell.com\/blog\/?p=45"},"modified":"2013-08-14T02:40:23","modified_gmt":"2013-08-14T02:40:23","slug":"how-to-get-logged-on-user-on-a-windows-machine","status":"publish","type":"post","link":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/","title":{"rendered":"How to Get The Logged On User on a Remote Windows Machine"},"content":{"rendered":"<p>This one is super cool and you will amaze your boss. Many times, I&#8217;m asked if I can find who is logged into a machine.<\/p>\n<p>As long as you have PSRemoting enabled across your network you can run this:<\/p>\n<p>Also replace IP or name with the IP address or computer name of the computer<\/p>\n<pre lang=\"POWERSHELL\">\r\nget-wmiobject win32_computersystem -computer IP or name | select username\r\n<\/pre>\n<p>or you can do a | select * and it will give you more info.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This one is super cool and you will amaze your boss. Many times, I&#8217;m asked if I can find who is logged into a machine. As long as you have PSRemoting enabled across your network you can run this: Also replace IP or name with the IP address or computer name of the computer get-wmiobject [&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":[33],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-powershell","tag-get-logged-on-user-of-a-computer"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Get The Logged On User on a Remote Windows Machine - 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\/how-to-get-logged-on-user-on-a-windows-machine\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Get The Logged On User on a Remote Windows Machine - System Admin [RESOLVED]\" \/>\n<meta property=\"og:description\" content=\"This one is super cool and you will amaze your boss. Many times, I&#8217;m asked if I can find who is logged into a machine. As long as you have PSRemoting enabled across your network you can run this: Also replace IP or name with the IP address or computer name of the computer get-wmiobject [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/\" \/>\n<meta property=\"og:site_name\" content=\"System Admin [RESOLVED]\" \/>\n<meta property=\"article:published_time\" content=\"2013-08-13T21:17:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-08-14T02:40:23+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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/\"},\"author\":{\"name\":\"Ed Rockwell\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\"},\"headline\":\"How to Get The Logged On User on a Remote Windows Machine\",\"datePublished\":\"2013-08-13T21:17:05+00:00\",\"dateModified\":\"2013-08-14T02:40:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/\"},\"wordCount\":80,\"commentCount\":0,\"keywords\":[\"Get Logged On User of a Computer\"],\"articleSection\":[\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/\",\"url\":\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/\",\"name\":\"How to Get The Logged On User on a Remote Windows Machine - System Admin [RESOLVED]\",\"isPartOf\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#website\"},\"datePublished\":\"2013-08-13T21:17:05+00:00\",\"dateModified\":\"2013-08-14T02:40:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.edrockwell.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Get The Logged On User on a Remote Windows Machine\"}]},{\"@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":"How to Get The Logged On User on a Remote Windows Machine - 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\/how-to-get-logged-on-user-on-a-windows-machine\/","og_locale":"en_US","og_type":"article","og_title":"How to Get The Logged On User on a Remote Windows Machine - System Admin [RESOLVED]","og_description":"This one is super cool and you will amaze your boss. Many times, I&#8217;m asked if I can find who is logged into a machine. As long as you have PSRemoting enabled across your network you can run this: Also replace IP or name with the IP address or computer name of the computer get-wmiobject [&hellip;]","og_url":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/","og_site_name":"System Admin [RESOLVED]","article_published_time":"2013-08-13T21:17:05+00:00","article_modified_time":"2013-08-14T02:40:23+00:00","author":"Ed Rockwell","twitter_card":"summary_large_image","twitter_creator":"@EddieRock","twitter_site":"@EddieRock","twitter_misc":{"Written by":"Ed Rockwell"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#article","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/"},"author":{"name":"Ed Rockwell","@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7"},"headline":"How to Get The Logged On User on a Remote Windows Machine","datePublished":"2013-08-13T21:17:05+00:00","dateModified":"2013-08-14T02:40:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/"},"wordCount":80,"commentCount":0,"keywords":["Get Logged On User of a Computer"],"articleSection":["PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/","url":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/","name":"How to Get The Logged On User on a Remote Windows Machine - System Admin [RESOLVED]","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/#website"},"datePublished":"2013-08-13T21:17:05+00:00","dateModified":"2013-08-14T02:40:23+00:00","author":{"@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7"},"breadcrumb":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.edrockwell.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Get The Logged On User on a Remote Windows Machine"}]},{"@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\/45","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=45"}],"version-history":[{"count":4,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions\/50"}],"wp:attachment":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}