{"id":465,"date":"2011-02-02T10:52:26","date_gmt":"2011-02-02T17:52:26","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=465"},"modified":"2011-02-02T10:52:26","modified_gmt":"2011-02-02T17:52:26","slug":"command-line-citrix","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=465","title":{"rendered":"Command line Citrix"},"content":{"rendered":"<p>I found myself in the situation where I needed access Citrix user connection information, but the Management Console was not displaying the users.  I was in a bit of a bind, and needed to figure out how determine who was logged into what Citrix server in the farm.  This led me to the command line.<\/p>\n<p>auditlog &#8211; This will display an audit report of all the user logins and logouts.  Basically, this queries the Windows event log.  There is not \/SERVER qualifier, so it looks like this only applies to the server you are logged in to.<\/p>\n<p>There are a number options to the query command.  Below are a couple, I have found most useful.  All the query commands accept a  \/SERVER:<em>servername<\/em> qualifier to view other servers as well.<\/p>\n<p>query farm &#8211; This will display all the current servers in the farm.<\/p>\n<p>query process &#8211; This will display all the processes for a given user.  You can use * to display all the processes on a server.<\/p>\n<p>query user &#8211; To display user information.<\/p>\n<p>quser &#8211; Displays all the currently connected users on the server.  You need to use the \/SERVER:<em>servername<\/em> qualifier to view servers other than the one you are currently logged in to.  A simple script can be used to display the users on all the servers.<\/p>\n<p>qwinsta &#8211; Display similar information as quser, but not a detailed.  For you need to use the  \/SERVER:<em>servername<\/em> qualifier as well.<\/p>\n<p>shadow &#8211; You use this command to shadow a user.  You need to determine the user ID number using one of the query command above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found myself in the situation where I needed access Citrix user connection information, but the Management Console was not displaying the users. I was in a bit of a bind, and needed to figure out how determine who was logged into what Citrix server in the farm. This led me to the command line. [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[112,145],"class_list":["post-465","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-citrix","tag-command-line"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=465"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":466,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/465\/revisions\/466"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}