{"id":1668,"date":"2016-01-23T10:31:52","date_gmt":"2016-01-23T15:31:52","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=1668"},"modified":"2016-01-23T10:31:52","modified_gmt":"2016-01-23T15:31:52","slug":"find-out-who-is-on-your-windows-network","status":"publish","type":"post","link":"https:\/\/www.wildow.com\/blog\/?p=1668","title":{"rendered":"find out who is on your windows network"},"content":{"rendered":"<h1 class=\"title\">Query user<\/h1>\n<div id=\"mainSection\">\n<div id=\"mainBody\">\n<p>Displays information about user sessions on a terminal server.<\/p>\n<h3 id=\"EEAA\">Syntax<\/h3>\n<p><strong>query user<\/strong>\u00a0[{<em>UserName<\/em>|<em>SessionName<\/em>|<em>SessionID<\/em>}] [<strong>\/server:<\/strong><em>ServerName<\/em>]<\/p>\n<div><a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/bb490801.aspx#mainSection\">Top of page<\/a><span class=\"Apple-converted-space\">\u00a0<\/span><\/div>\n<h3 id=\"EDAA\">Parameters<\/h3>\n<p><strong><em>UserName<\/em><span class=\"Apple-converted-space\">\u00a0<\/span><\/strong><strong>\u00a0<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span><strong>:<span class=\"Apple-converted-space\">\u00a0<\/span><\/strong>Specifies the logon name of the user you want to query.<\/p>\n<p><strong><em>SessionName<\/em><span class=\"Apple-converted-space\">\u00a0<\/span><\/strong><strong>\u00a0<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span><strong>:<span class=\"Apple-converted-space\">\u00a0<\/span><\/strong>Specifies the name of the session you want to query.<\/p>\n<p><strong><em>SessionID<\/em><span class=\"Apple-converted-space\">\u00a0<\/span><\/strong><strong>\u00a0<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span><strong>:<span class=\"Apple-converted-space\">\u00a0<\/span><\/strong>Specifies the ID of the session you want to query.<\/p>\n<p><strong>\/server:<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span><strong><em>ServerName<\/em><span class=\"Apple-converted-space\">\u00a0<\/span><\/strong><strong>\u00a0<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span><strong>:<span class=\"Apple-converted-space\">\u00a0<\/span><\/strong>Specifies the terminal server you want to query. Otherwise, the current terminal server is used.<\/p>\n<p><strong>\/?<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span><strong>\u00a0<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span><strong>:<span class=\"Apple-converted-space\">\u00a0<\/span><\/strong>Displays help at the command prompt.<\/p>\n<div><a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/bb490801.aspx#mainSection\">Top of page<\/a><span class=\"Apple-converted-space\">\u00a0<\/span><\/div>\n<h3 id=\"ECAA\">Remarks<\/h3>\n<ul>\n<li>You can use this command to find out if a specific user is logged on to a specific terminal server.<span class=\"Apple-converted-space\">\u00a0<\/span><strong>Query user<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span>returns the following information:\n<ul>\n<li>The name of the user<\/li>\n<li>The name of the session on the terminal server<\/li>\n<li>The session ID<\/li>\n<li>The state of the session (active or disconnected)<\/li>\n<li>The idle time (the number of minutes since the last keystroke or mouse movement at the session)<\/li>\n<li>The date and time the user logged on<\/li>\n<\/ul>\n<\/li>\n<li>To use<span class=\"Apple-converted-space\">\u00a0<\/span><strong>query user<\/strong>, you must have Full Control permission or Query Information special access permission.<\/li>\n<li>If you use<span class=\"Apple-converted-space\">\u00a0<\/span><strong>query user<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span>without specifying a user name, session name, or session ID, a list of all users who are logged on to the server is returned. Alternatively, you can also use<span class=\"Apple-converted-space\">\u00a0<\/span><strong>query session<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span>to display a list of all sessions on a server.<\/li>\n<li>When<span class=\"Apple-converted-space\">\u00a0<\/span><strong>query user<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span>returns information, a less than (&gt;) symbol is displayed before the current session.<\/li>\n<li>The<span class=\"Apple-converted-space\">\u00a0<\/span><strong>\/server<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span>parameter is required only if you use<span class=\"Apple-converted-space\">\u00a0<\/span><strong>query user<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span>from a remote server.<\/li>\n<\/ul>\n<div><a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/bb490801.aspx#mainSection\">Top of page<\/a><span class=\"Apple-converted-space\">\u00a0<\/span><\/div>\n<h3 id=\"EBAA\">Examples<\/h3>\n<p>To display information about all users logged on the system, type:<\/p>\n<p><strong>query user<\/strong><\/p>\n<p>To display information about the user USER1 on server SERVER1, type:<\/p>\n<p><strong>query user USER1 \/server:SERVER1<\/strong><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Query user Displays information about user sessions on a terminal server. Syntax query user\u00a0[{UserName|SessionName|SessionID}] [\/server:ServerName] Top of page\u00a0 Parameters UserName\u00a0\u00a0\u00a0:\u00a0Specifies the logon name of the user you want to query. SessionName\u00a0\u00a0\u00a0:\u00a0Specifies the name of the session you want to query. &#8230; <a class=\"more-link\" href=\"https:\/\/www.wildow.com\/blog\/?p=1668\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1668","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1668"}],"version-history":[{"count":1,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1668\/revisions"}],"predecessor-version":[{"id":1669,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1668\/revisions\/1669"}],"wp:attachment":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}