{"id":380,"date":"2023-05-31T08:36:32","date_gmt":"2023-05-31T06:36:32","guid":{"rendered":"http:\/\/virtualnomad.nl\/?p=380"},"modified":"2023-05-31T08:36:38","modified_gmt":"2023-05-31T06:36:38","slug":"monitoring-lingering-adconnect-sessions","status":"publish","type":"post","link":"https:\/\/virtualnomad.nl\/?p=380","title":{"rendered":"Monitoring Lingering ADConnect Sessions"},"content":{"rendered":"\n<p>In the world of IT support, we often encounter scenarios where users inadvertently leave applications open, leading to potential synchronization issues and service disruptions. One such common occurrence is when ADConnect, the Azure AD Connect wizard, remains open due to improper logouts or attempted modifications. To address this problem, our client requested a solution that would alert the service desk whenever ADConnect is still running, indicating a disconnected user. In this blog post, we present a script that creates an event notifying the status of ADConnect, allowing for quick remedial action. While implementing a policy for user inactivity or disconnection could be an alternative solution, certain constraints might prevent its deployment. This script offers a flexible approach to address such situations. Our client utilizes this script, executed every 10 minutes via Task Scheduler, to raise an alert if ADConnect remains open for two hours. Of course, feel free to adjust the script as per your requirements.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" style=\"font-size:.875rem;line-height:1.25rem\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">PowerShell<\/span><span role=\"button\" tabindex=\"0\" data-code=\"$maxOpenTime = 2 * 60 * 60 # 2 hours in seconds\n\n\u00a0\n\n$adConnectProcess = Get-Process -Name &quot;ADConnect.exe&quot; -ErrorAction SilentlyContinue\n\n\u00a0\n\nif ($adConnectProcess) {\n\u00a0\u00a0\u00a0 $runningTime = (Get-Date) - $adConnectProcess.StartTime\n\n\u00a0\n\n\u00a0\u00a0\u00a0 if ($runningTime.TotalSeconds -gt $maxOpenTime) {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Write-EventLog -LogName Application -Source &quot;AzureADConnectWizard&quot; -EventId 1000 -Message &quot;The Azure AD Connect wizard has been open for more than 2 hours.&quot;\n\u00a0\u00a0\u00a0 }\n}\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">maxOpenTime<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">2<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">60<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">60<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #616E88\"># 2 hours in seconds<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u00a0<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">adConnectProcess<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">Get-Process<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">Name <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">ADConnect.exe<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">ErrorAction SilentlyContinue<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u00a0<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">adConnectProcess<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u00a0\u00a0\u00a0 <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">runningTime<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #88C0D0\">Get-Date<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">adConnectProcess.StartTime<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u00a0<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u00a0\u00a0\u00a0 <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">runningTime.TotalSeconds<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-gt<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">maxOpenTime<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #88C0D0\">Write-EventLog<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">LogName Application <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">Source <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">AzureADConnectWizard<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">EventId <\/span><span style=\"color: #B48EAD\">1000<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">Message <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">The Azure AD Connect wizard has been open for more than 2 hours.<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u00a0\u00a0\u00a0 <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>Let&#8217;s break down the script and understand its inner workings:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>We start by defining a variable <code>$maxOpenTime<\/code> which represents the maximum allowed duration for ADConnect to remain open. In our case, it is set to 2 hours (2 * 60 * 60 seconds).<\/li>\n\n\n\n<li>Using the <code>Get-Process<\/code> cmdlet, we attempt to retrieve the running process with the name &#8220;ADConnect.exe&#8221;. By using the <code>-ErrorAction SilentlyContinue<\/code> parameter, any errors encountered during the process retrieval will be suppressed.<\/li>\n\n\n\n<li>We check if the <code>$adConnectProcess<\/code> variable contains a valid process. If ADConnect is running, we proceed to calculate the duration it has been running.<\/li>\n\n\n\n<li>The <code>$runningTime<\/code> variable is calculated by subtracting the start time of the ADConnect process from the current date and time.<\/li>\n\n\n\n<li>We then compare the <code>TotalSeconds<\/code> property of <code>$runningTime<\/code> with the predefined maximum open time. If the running time exceeds the maximum open time, we enter the conditional block.<\/li>\n\n\n\n<li>Within the conditional block, we use the <code>Write-EventLog<\/code> cmdlet to create an event log entry in the &#8220;Application&#8221; log. The source is set as &#8220;AzureADConnectWizard&#8221; for easy identification, and the event ID is set as 1000. The message indicates that the Azure AD Connect wizard has been open for more than 2 hours.<\/li>\n<\/ol>\n\n\n\n<p>Also, note that <strong>Write-EventLog<\/strong> requires elevated permissions (administrator), and you need to have the source &#8220;<strong>AzureADConnectWizard<\/strong>&#8221; registered for the Application log. If it&#8217;s not, you&#8217;ll have to create it first by running this line of code: <\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" style=\"font-size:.875rem;line-height:1.25rem\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">PowerShell<\/span><span role=\"button\" tabindex=\"0\" data-code=\"New-EventLog -LogName Application -Source AzureADConnectWizard\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">New-EventLog<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">LogName Application <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">Source AzureADConnectWizard<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>With this script in place, you can proactively monitor and identify disconnected users who have inadvertently left the ADConnect wizard open. By generating an event log entry, you can quickly share this information with your monitoring system, enabling prompt action to rectify synchronization issues. While implementing policies for user inactivity or disconnection can be a viable solution, our script offers a practical workaround when such policies are not feasible. Remember to adjust the script as per your specific requirements and integrate it into your task scheduler for regular execution. Happy monitoring!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the world of IT support, we often encounter scenarios where users inadvertently leave applications open, leading to potential synchronization issues and service disruptions. One such common occurrence is when ADConnect, the Azure AD Connect wizard, remains open due to improper logouts or attempted modifications. To address this problem, our client requested a solution that&#8230;<\/p>\n","protected":false},"author":1,"featured_media":381,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[21,7],"class_list":["post-380","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office-365","tag-adconnect","tag-o365"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Monitoring Lingering ADConnect Sessions - Virtual Nomad<\/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:\/\/virtualnomad.nl\/?p=380\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Monitoring Lingering ADConnect Sessions - Virtual Nomad\" \/>\n<meta property=\"og:description\" content=\"In the world of IT support, we often encounter scenarios where users inadvertently leave applications open, leading to potential synchronization issues and service disruptions. One such common occurrence is when ADConnect, the Azure AD Connect wizard, remains open due to improper logouts or attempted modifications. To address this problem, our client requested a solution that...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/virtualnomad.nl\/?p=380\" \/>\n<meta property=\"og:site_name\" content=\"Virtual Nomad\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-31T06:36:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-31T06:36:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/05\/AzureADConnect.png\" \/>\n\t<meta property=\"og:image:width\" content=\"530\" \/>\n\t<meta property=\"og:image:height\" content=\"265\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Arno Geboers\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arno Geboers\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380\"},\"author\":{\"name\":\"Arno Geboers\",\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/#\\\/schema\\\/person\\\/3c08ee70c43dfd351fe038a7f6038d3b\"},\"headline\":\"Monitoring Lingering ADConnect Sessions\",\"datePublished\":\"2023-05-31T06:36:32+00:00\",\"dateModified\":\"2023-05-31T06:36:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380\"},\"wordCount\":475,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/#\\\/schema\\\/person\\\/3c08ee70c43dfd351fe038a7f6038d3b\"},\"image\":{\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/virtualnomad.nl\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/AzureADConnect.png\",\"keywords\":[\"adconnect\",\"O365\"],\"articleSection\":[\"Office 365\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/virtualnomad.nl\\\/?p=380#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380\",\"url\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380\",\"name\":\"Monitoring Lingering ADConnect Sessions - Virtual Nomad\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/virtualnomad.nl\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/AzureADConnect.png\",\"datePublished\":\"2023-05-31T06:36:32+00:00\",\"dateModified\":\"2023-05-31T06:36:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/virtualnomad.nl\\\/?p=380\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380#primaryimage\",\"url\":\"https:\\\/\\\/virtualnomad.nl\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/AzureADConnect.png\",\"contentUrl\":\"https:\\\/\\\/virtualnomad.nl\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/AzureADConnect.png\",\"width\":530,\"height\":265},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/?p=380#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/virtualnomad.nl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Monitoring Lingering ADConnect Sessions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/#website\",\"url\":\"https:\\\/\\\/virtualnomad.nl\\\/\",\"name\":\"Virtual Nomad\",\"description\":\"a blog about the knowledge journey in Office 365 and Azure\",\"publisher\":{\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/#\\\/schema\\\/person\\\/3c08ee70c43dfd351fe038a7f6038d3b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/virtualnomad.nl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/#\\\/schema\\\/person\\\/3c08ee70c43dfd351fe038a7f6038d3b\",\"name\":\"Arno Geboers\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/cropped-cropped-AdobeStock_225103676-min.jpg\",\"url\":\"https:\\\/\\\/virtualnomad.nl\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/cropped-cropped-AdobeStock_225103676-min.jpg\",\"contentUrl\":\"https:\\\/\\\/virtualnomad.nl\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/cropped-cropped-AdobeStock_225103676-min.jpg\",\"width\":239,\"height\":178,\"caption\":\"Arno Geboers\"},\"logo\":{\"@id\":\"https:\\\/\\\/virtualnomad.nl\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/cropped-cropped-AdobeStock_225103676-min.jpg\"},\"sameAs\":[\"http:\\\/\\\/virtualnomad.nl\"],\"url\":\"https:\\\/\\\/virtualnomad.nl\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Monitoring Lingering ADConnect Sessions - Virtual Nomad","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:\/\/virtualnomad.nl\/?p=380","og_locale":"en_US","og_type":"article","og_title":"Monitoring Lingering ADConnect Sessions - Virtual Nomad","og_description":"In the world of IT support, we often encounter scenarios where users inadvertently leave applications open, leading to potential synchronization issues and service disruptions. One such common occurrence is when ADConnect, the Azure AD Connect wizard, remains open due to improper logouts or attempted modifications. To address this problem, our client requested a solution that...","og_url":"https:\/\/virtualnomad.nl\/?p=380","og_site_name":"Virtual Nomad","article_published_time":"2023-05-31T06:36:32+00:00","article_modified_time":"2023-05-31T06:36:38+00:00","og_image":[{"width":530,"height":265,"url":"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/05\/AzureADConnect.png","type":"image\/png"}],"author":"Arno Geboers","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Arno Geboers","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/virtualnomad.nl\/?p=380#article","isPartOf":{"@id":"https:\/\/virtualnomad.nl\/?p=380"},"author":{"name":"Arno Geboers","@id":"https:\/\/virtualnomad.nl\/#\/schema\/person\/3c08ee70c43dfd351fe038a7f6038d3b"},"headline":"Monitoring Lingering ADConnect Sessions","datePublished":"2023-05-31T06:36:32+00:00","dateModified":"2023-05-31T06:36:38+00:00","mainEntityOfPage":{"@id":"https:\/\/virtualnomad.nl\/?p=380"},"wordCount":475,"commentCount":0,"publisher":{"@id":"https:\/\/virtualnomad.nl\/#\/schema\/person\/3c08ee70c43dfd351fe038a7f6038d3b"},"image":{"@id":"https:\/\/virtualnomad.nl\/?p=380#primaryimage"},"thumbnailUrl":"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/05\/AzureADConnect.png","keywords":["adconnect","O365"],"articleSection":["Office 365"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/virtualnomad.nl\/?p=380#respond"]}]},{"@type":"WebPage","@id":"https:\/\/virtualnomad.nl\/?p=380","url":"https:\/\/virtualnomad.nl\/?p=380","name":"Monitoring Lingering ADConnect Sessions - Virtual Nomad","isPartOf":{"@id":"https:\/\/virtualnomad.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/virtualnomad.nl\/?p=380#primaryimage"},"image":{"@id":"https:\/\/virtualnomad.nl\/?p=380#primaryimage"},"thumbnailUrl":"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/05\/AzureADConnect.png","datePublished":"2023-05-31T06:36:32+00:00","dateModified":"2023-05-31T06:36:38+00:00","breadcrumb":{"@id":"https:\/\/virtualnomad.nl\/?p=380#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/virtualnomad.nl\/?p=380"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtualnomad.nl\/?p=380#primaryimage","url":"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/05\/AzureADConnect.png","contentUrl":"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/05\/AzureADConnect.png","width":530,"height":265},{"@type":"BreadcrumbList","@id":"https:\/\/virtualnomad.nl\/?p=380#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/virtualnomad.nl\/"},{"@type":"ListItem","position":2,"name":"Monitoring Lingering ADConnect Sessions"}]},{"@type":"WebSite","@id":"https:\/\/virtualnomad.nl\/#website","url":"https:\/\/virtualnomad.nl\/","name":"Virtual Nomad","description":"a blog about the knowledge journey in Office 365 and Azure","publisher":{"@id":"https:\/\/virtualnomad.nl\/#\/schema\/person\/3c08ee70c43dfd351fe038a7f6038d3b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/virtualnomad.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/virtualnomad.nl\/#\/schema\/person\/3c08ee70c43dfd351fe038a7f6038d3b","name":"Arno Geboers","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/03\/cropped-cropped-AdobeStock_225103676-min.jpg","url":"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/03\/cropped-cropped-AdobeStock_225103676-min.jpg","contentUrl":"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/03\/cropped-cropped-AdobeStock_225103676-min.jpg","width":239,"height":178,"caption":"Arno Geboers"},"logo":{"@id":"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/03\/cropped-cropped-AdobeStock_225103676-min.jpg"},"sameAs":["http:\/\/virtualnomad.nl"],"url":"https:\/\/virtualnomad.nl\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/virtualnomad.nl\/wp-content\/uploads\/2023\/05\/AzureADConnect.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/virtualnomad.nl\/index.php?rest_route=\/wp\/v2\/posts\/380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtualnomad.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtualnomad.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtualnomad.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/virtualnomad.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=380"}],"version-history":[{"count":0,"href":"https:\/\/virtualnomad.nl\/index.php?rest_route=\/wp\/v2\/posts\/380\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtualnomad.nl\/index.php?rest_route=\/wp\/v2\/media\/381"}],"wp:attachment":[{"href":"https:\/\/virtualnomad.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtualnomad.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtualnomad.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}