Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form

Fix Windows Server frequent disconnects and shutdown

Posted on 04/02/202515/02/2025 IT Expert By IT Expert No Comments on Fix Windows Server frequent disconnects and shutdown
  1. Home
  2. Windows Server
  3. Fix Windows Server frequent disconnects and shutdown
fix frequent shutdown due to licensing issues - Windows

In this article, we shall discuss how to fix Windows Server frequent disconnects and shutdown. Before proceeding, I am currently using ACEMAGIC Mini PC for this specific lab environment with an  excellent computing power and impressive performance. You may want to see how to install Windows Server unto ACEMAGICIAN Mini PC. Also, see  how Install Proxmox VE on a Beelink EQ12 Mini PC, how to install ESXi on a Beelink EQ12 Mini PC, and how to join a computer to the Domain.

If you are experiencing frequent disconnects and shutdowns, below are some common causes. I will only discuss the fix applicable to me in the next session.

  • Overheating and Hardware Issue
  • Network Disconnects (Frequent RDP & Service Drops)
  • Unexpected Shutdowns (Power, Hardware, or OS Issues)
  • Scheduled Tasks or Auto-Restarts, and
  • Licensing or Activation Issues (Grace Period Expired). This is the elephant in the room in my case.

Here are some related error code “Fix Windows 11 Remote Desktop Connectivity Error code 0x204“, and how to Fix Remote Desktop Connection issues (Error 0x204).

Reason for Frequent Shutdown and RDP disconnection

As earlier stated, my focus will be on the root cause and not dive into other possible causes. The RDP console prompted an error code 0x19 which indicates a security or certificate issue when attempting to connect to a remote desktop session.

With the above information, the error code 0x19 can occur due to Licensing or Activation Issues. This is because, the grace period for activating Windows has expired. RDP relies on a fully activated Windows installation for secure and proper communication. Without proper activation, the system may block RDP connections, prompting the error code 0x19.

Session disconnected

Please see How to prevent a remote shutdown and restart in Windows, how to prevent users from shutting down in a Virtual Machine, and how to use command prompt to shutdown and restart your computer.

Troubleshooting Windows to see why the frequent Shutdown

I had to check the Power and Sleep settings via the control panel and Windows settings to see if there is a wrong configuration for sleep settings. There was none as you can see below.

Note: Ensure settings are configured to prevent the system from shutting down unexpectedly

Windows Power and Sleep
Windows Settings – Sleep and Power
Power and sleep - Control Panel
Windows Control Panel – Power Option

Finally, took a look at the event viewer and found the culprit from the time-service log. Here it says, the time provider has indicated that the current hardware and operating system is not supported and has stopped.

Event Log

Here is a related guide “Upgrade Expired Evaluation Configuration Manager to Full Version“, and Microsoft SQL Evaluation period has expired: How to upgrade SQL Server instance.

This prompted me to take a look the activation status “This version of windows is expired”.

Note: You might see this error if you entered an invalid product key or a product key for a different version of Windows. You can learn more about different Windows Activation errors. An image in this guide “How to upgrade Windows Server Evaluation to Full Version” also shows a similar issue where the OS will shutdown after every hour due to expiration of the evaluation period.

Windows version expired

Windows Evaluation Period

After installing the Windows Server Evaluation, you will have 180 days to use the full functionality. After this period expires, the system will enter an unlicensed state and restrict access to certain features. Merely entering the product key at this point will not fix this issue as it is an evaluation copy.

Note: Windows does allow you to extend the evaluation period for certain editions, including Windows Server. You can extend the evaluation period using a command in PowerShell or Command Prompt.

Here is a comprehensive guide on this topic ‘Manage Windows Product key with Software Licensing Manager“. To check the current license status, please run the command below.

slmgr /dli

To extend the evaluation period (for another 180 days), use the command

slmgr /rearm

After running the above command, restart the computer to apply the changes.

Note: The “slmgr /rearm” command can be used only 3 times (allowing you to extend the evaluation for a maximum of 540 days).Once the evaluation period ends after these extensions. You will need to convert the evaluation copy to a full licensed version.

Convert the evaluation copy to a full licensed version

According to Microsoft, Windows Server Evaluation Edition is a trial version of Windows Server designed for testing and evaluation purposes. It comes with a limited evaluation period (usually 180 days), after which the system will start shutting down regularly if not activated.

Since the extension can only be made three times, it is better we convert to a full licensed version and this is what I will be showing you in this section.

To do this, please launch PowerShell with Admin rights and run he command below to get the possible target upgrade version.

DISM /Online /Get-TargetEditions

As you can see, this can be upgraded to the Data Center Edition. To convert the evaluation to the full version, please run the command below.

DISM /online /Set-Edition:ServerDatacenter /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
Convert Windows Server 2022 to Windows Server 2025 Data Center Edition.jpg 20-20-05-068

As some point, you will be requested to restart your server. Hit the “Y” button on your keyboard and hit the Enter key. As you can see below, we have successfully converted the evaluation copy to a full version.

Datacenter - Windows server converted

Windows Activation

When converting a Windows Server Evaluation copy to a full licensed version, activation may not work immediately due to internet or Activation Server issues. In this case. you can activate manually via the Windows Settings or PowerShell as shown below.

Windows product key
activate windows

To do this via PowerShell, replace your_license_key with following volume license keys according to Windows Edition and activate Windows afterwards

slmgr /ipk your_license_key
slmgr /ato
install product key windows

I hope you found this article very useful on how to fix Windows Server frequent disconnects and shutdown. Please feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Microsoft Windows, RDP, Windows Activation, Windows Server 2016

Post navigation

Previous Post: Install Remote Server Administration Tools on Windows 11
Next Post: Prevent Microsoft Teams from starting automatically on Windows

Related Posts

  • article 1280x720.192a2586 1
    How to apply Windows Updates from WSUS to AWS Instances AWS/Azure/OpenShift
  • image 35
    How to Activate and Press Ctrl+Alt+Del in Anydesk for Remote Access Connection to Windows system Windows
  • WindowsUpdatesDISM 1
    Determine Apps UWP and remove pre-provisioned Appx in Windows Windows Server
  • App Locker
    Harden your Veeam Backup Server with Microsoft AppLocker Windows
  • image001
    Fix Certificate Error: Unable to access Windows Admin Center from the Web Windows Server
  • ACE magic
    How to install Windows Server unto ACEMAGICIAN Mini PC Windows Server

More Related Articles

article 1280x720.192a2586 1 How to apply Windows Updates from WSUS to AWS Instances AWS/Azure/OpenShift
image 35 How to Activate and Press Ctrl+Alt+Del in Anydesk for Remote Access Connection to Windows system Windows
WindowsUpdatesDISM 1 Determine Apps UWP and remove pre-provisioned Appx in Windows Windows Server
App Locker Harden your Veeam Backup Server with Microsoft AppLocker Windows
image001 Fix Certificate Error: Unable to access Windows Admin Center from the Web Windows Server
ACE magic How to install Windows Server unto ACEMAGICIAN Mini PC Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • EC2
    How to Add and Format a New Virtual Disk to an EC2 Instance AWS/Azure/OpenShift
  • Screenshot 2020 05 14 at 19.28.50
    How to install and configure Rancid Linux
  • ansible vault
    Fix AttributeError ‘ShellModule’ Object Has No Attribute ‘ECHO’ Configuration Management Tool
  • wacxx
    How to set up System Insights on Windows Admin Center Windows Server
  • KIOSK AssignedAccess
    How to set up a Single App Kiosk Mode Configuration using a Local Account / MDM Bridge WMI Provider Windows
  • screenshot 2020 02 08 at 15.53.31
    Auto Logon Error “Username and password specified is not valid” Windows
  • Dockerize NodeJS Application
    Dockerizing a NodeJs Express Application Automation
  • Force bitlocker encryption
    Force BitLocker Recovery mode: How to unlock BitLocker Protected Drive Network | Monitoring

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,796 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.