{"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":"2026-07-02T16:57:33","modified_gmt":"2026-07-02T16:57:33","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":"closed","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":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"This one is super cool and you will amaze your boss. Many times, I&#039;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\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ed Rockwell\"\/>\n\t<meta name=\"keywords\" content=\"get logged on user of a computer\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/\" \/>\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=\"How to Get The Logged On User on a Remote Windows Machine | System Admin [RESOLVED]\" \/>\n\t\t<meta property=\"og:description\" content=\"This one is super cool and you will amaze your boss. Many times, I&#039;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\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2013-08-13T21:17:05+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=\"How to Get The Logged On User on a Remote Windows Machine | System Admin [RESOLVED]\" \/>\n\t\t<meta name=\"twitter:description\" content=\"This one is super cool and you will amaze your boss. Many times, I&#039;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\" \/>\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\\\/how-to-get-logged-on-user-on-a-windows-machine\\\/#article\",\"name\":\"How to Get The Logged On User on a Remote Windows Machine | System Admin [RESOLVED]\",\"headline\":\"How to Get The Logged On User on a Remote Windows Machine\",\"author\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#organization\"},\"datePublished\":\"2013-08-13T21:17:05+00:00\",\"dateModified\":\"2026-07-02T16:57:33+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/how-to-get-logged-on-user-on-a-windows-machine\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/how-to-get-logged-on-user-on-a-windows-machine\\\/#webpage\"},\"articleSection\":\"PowerShell, Get Logged On User of a Computer\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/how-to-get-logged-on-user-on-a-windows-machine\\\/#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\\\/how-to-get-logged-on-user-on-a-windows-machine\\\/#listItem\",\"name\":\"How to Get The Logged On User on a Remote Windows Machine\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/how-to-get-logged-on-user-on-a-windows-machine\\\/#listItem\",\"position\":3,\"name\":\"How to Get The Logged On User on a Remote Windows Machine\",\"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\\\/how-to-get-logged-on-user-on-a-windows-machine\\\/#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\\\/how-to-get-logged-on-user-on-a-windows-machine\\\/#webpage\",\"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]\",\"description\":\"This one is super cool and you will amaze your boss. Many times, I'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\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/how-to-get-logged-on-user-on-a-windows-machine\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2013-08-13T21:17:05+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":"How to Get The Logged On User on a Remote Windows Machine | System Admin [RESOLVED]","description":"This one is super cool and you will amaze your boss. Many times, I'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","canonical_url":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/","robots":"max-image-preview:large","keywords":"get logged on user of a computer","webmasterTools":{"miscellaneous":""},"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","name":"How to Get The Logged On User on a Remote Windows Machine | System Admin [RESOLVED]","headline":"How to Get The Logged On User on a Remote Windows Machine","author":{"@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.edrockwell.com\/blog\/#organization"},"datePublished":"2013-08-13T21:17:05+00:00","dateModified":"2026-07-02T16:57:33+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#webpage"},"isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#webpage"},"articleSection":"PowerShell, Get Logged On User of a Computer"},{"@type":"BreadcrumbList","@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#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\/how-to-get-logged-on-user-on-a-windows-machine\/#listItem","name":"How to Get The Logged On User on a Remote Windows Machine"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#listItem","position":3,"name":"How to Get The Logged On User on a Remote Windows Machine","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\/how-to-get-logged-on-user-on-a-windows-machine\/#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\/how-to-get-logged-on-user-on-a-windows-machine\/#webpage","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]","description":"This one is super cool and you will amaze your boss. Many times, I'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","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/#breadcrumblist"},"author":{"@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author"},"datePublished":"2013-08-13T21:17:05+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":"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'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","og:url":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/","article:published_time":"2013-08-13T21:17:05+00:00","article:modified_time":"2026-07-02T16:57:33+00:00","twitter:card":"summary","twitter:title":"How to Get The Logged On User on a Remote Windows Machine | System Admin [RESOLVED]","twitter:description":"This one is super cool and you will amaze your boss. Many times, I'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"},"aioseo_meta_data":{"post_id":"45","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\tHow to Get The Logged On User on a Remote Windows Machine\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":"How to Get The Logged On User on a Remote Windows Machine","link":"https:\/\/www.edrockwell.com\/blog\/how-to-get-logged-on-user-on-a-windows-machine\/"}],"_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":5,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":312,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions\/312"}],"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}]}}