{"id":2744,"date":"2024-05-24T01:51:59","date_gmt":"2024-05-23T23:51:59","guid":{"rendered":"https:\/\/itsimple.info\/?p=2744"},"modified":"2024-05-24T01:52:41","modified_gmt":"2024-05-23T23:52:41","slug":"terminal-server-or-remote-desktop-not-listening-on-port-3389-after-sysprep","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=2744","title":{"rendered":"Terminal Server or Remote Desktop Not listening on port 3389 after sysprep"},"content":{"rendered":"\n<p>Remote Desktop Services is not accepting logons because setup is running.<br>Log Name: Microsoft-Windows-TerminalServices-LocalSessionManager\/Operational<br>Source: TerminalServices-LocalSessionManager<br>Event ID: 34<\/p>\n\n\n\n<p>If Sysprep is stuck or trying to run repeatedly, it might be necessary to clean up any pending Sysprep state. This typically involves deleting certain registry keys and files associated with Sysprep to reset its state. Here&#8217;s how you can clean up the Sysprep run:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Steps to Clean Up Sysprep State<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Stop the Sysprep Process (if running)<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open Task Manager (Ctrl + Shift + Esc).<\/li>\n\n\n\n<li>Look for any Sysprep-related processes and end them.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Delete Pending Sysprep Registry Key<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the Registry Editor (type <code>regedit<\/code> in the Run dialog and press Enter).<\/li>\n\n\n\n<li>Navigate to the following path:<br><code>HKEY_LOCAL_MACHINE\\SYSTEM\\Setup\\Status\\SysprepStatus<\/code><\/li>\n\n\n\n<li>Delete the <code>GeneralizationState<\/code> key.<\/li>\n\n\n\n<li>You can also try <code>GeneralizationState<\/code> key value 7.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Delete Sysprep Pending File<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open File Explorer and navigate to the Sysprep directory:<br><code>C:\\Windows\\System32\\Sysprep<\/code><\/li>\n\n\n\n<li>Delete the <code>Panther<\/code> folder or any files in it that indicate a pending operation, such as <code>setupact.log<\/code> or <code>setuperr.log<\/code>.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Clear Setup Files<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to the following path in File Explorer:<br><code>C:\\Windows\\System32\\Sysprep\\Panther<\/code><\/li>\n\n\n\n<li>Delete the <code>setupact.log<\/code> and <code>setuperr.log<\/code> files.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Check for Other Pending Operations<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sometimes, other setup files can indicate pending operations. Check and delete any of the following files if they exist:\n<ul class=\"wp-block-list\">\n<li><code>C:\\Windows\\Panther<\/code><\/li>\n\n\n\n<li><code>C:\\Windows\\System32\\sysprep\\Panther\\setupact.log<\/code><\/li>\n\n\n\n<li><code>C:\\Windows\\System32\\sysprep\\Panther\\setuperr.log<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Restart the Computer<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After cleaning up the registry and deleting pending files, restart the server.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Verify and Re-enable Remote Desktop<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Ensure Remote Desktop is Enabled<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After rebooting, check if Remote Desktop is enabled:\n<ul class=\"wp-block-list\">\n<li>Open <strong>System Properties<\/strong> (Right-click on &#8216;This PC&#8217; -> Properties -> Remote settings).<\/li>\n\n\n\n<li>Ensure that &#8220;Allow remote connections to this computer&#8221; is selected.<\/li>\n\n\n\n<li>Apply the settings.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Restart Remote Desktop Services<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open an elevated Command Prompt or PowerShell and run the following commands to ensure that Remote Desktop Services are running:<br><code>powershell sc config TermService start= auto sc start TermService<\/code><\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Check Event Viewer<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open Event Viewer and navigate to <strong>Applications and Services Logs<\/strong> -> <strong>Microsoft<\/strong> -> <strong>Windows<\/strong> -> <strong>TerminalServices-LocalSessionManager<\/strong> -> <strong>Operational<\/strong>.<\/li>\n\n\n\n<li>Verify that there are no further errors related to Sysprep or Remote Desktop Services.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Detailed Registry Edit Steps<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open Registry Editor<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Press <code>Win + R<\/code>, type <code>regedit<\/code>, and press Enter.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Navigate to Sysprep Status Key<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <code>HKEY_LOCAL_MACHINE\\SYSTEM\\Setup\\Status\\SysprepStatus<\/code>.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Modify or Delete Values<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You might see a key named <code>GeneralizationState<\/code>. If it exists, right-click and delete it.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">File Deletion Steps<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open File Explorer<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to <code>C:\\Windows\\System32\\Sysprep\\Panther<\/code>.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Delete Logs and Pending Files<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Delete any <code>setupact.log<\/code>, <code>setuperr.log<\/code>, or other pending files.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p>By cleaning up the Sysprep state and ensuring that Remote Desktop Services are properly configured, you should be able to resolve the issue of Remote Desktop not accepting logons. If the problem persists, further investigation into logs and potential issues with the Sysprep process or Remote Desktop configuration may be necessary.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remote Desktop Services is not accepting logons because setup is running.Log Name: Microsoft-Windows-TerminalServices-LocalSessionManager\/OperationalSource: TerminalServices-LocalSessionManagerEvent ID: 34 If Sysprep is stuck or trying to run repeatedly, it might be necessary to clean up any pending Sysprep state. This typically involves deleting certain registry keys and files associated with Sysprep to reset its state. Here&#8217;s how you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,4,1,14,15],"tags":[],"class_list":["post-2744","post","type-post","status-publish","format-standard","hentry","category-operating-systems","category-tech","category-uncategorized","category-windows","category-windows-server"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2744"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2744\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}