Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » Fix Windows Server frequent disconnects and shutdown
  • xxxxxx 1
    Display Windows system information via the Windows registry Windows
  • ssl
    SSL Encrypted Communications explained Web Server
  • How to Block IP Addresses Using Group Policy (GPO) in Active Directory
    Block IP Addresses Using Group Policy (GPO) in Active Directory Network | Monitoring
  • Trellix MVISOSN
    How to install Trellix MVISON Endpoint Security | Vulnerability Scans and Assessment
  • banner
    What is Phishing Resistant Multi-Factor Authentication? Security | Vulnerability Scans and Assessment
  • change keyboard layout windows 10 thumb800
    How to use the On-Screen Keyboard Windows
  • powershell
    Set PowerShell Execution Policy via Windows Settings Windows
  • powershell auto run
    How to pause a PowerShell script Windows

Fix Windows Server frequent disconnects and shutdown

Posted on 04/02/202515/02/2025 Christian By Christian No Comments on 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 Pocket (Opens in new window) Pocket
  • 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

  • Slide1
    Enable Exploit Protection feature on Windows using the Windows Security App, Microsoft Endpoint Configuration Manager, and Group Policy Windows
  • Resolvederror MBAM
    MBAM Policy was detected: Verify the OU used for pre-deployment does not apply MBAM policy Windows Server
  • logon
    Configure logon hours for users in Active Directory Windows Server
  • article 1280x720.192a2586
    Windows Deployment Services: How to setup and install WDS role Windows Server
  • fress install windows server 2025   downgrade of Windows Server datacenter to standard edition
    Convert Windows Server Datacenter to Standard: Install Windows Server via iDRAC Virtual Media Windows Server
  • CAL Removal
    How to Remove and Manage RDS Licenses Web Server

More Related Articles

Slide1 Enable Exploit Protection feature on Windows using the Windows Security App, Microsoft Endpoint Configuration Manager, and Group Policy Windows
Resolvederror MBAM MBAM Policy was detected: Verify the OU used for pre-deployment does not apply MBAM policy Windows Server
logon Configure logon hours for users in Active Directory Windows Server
article 1280x720.192a2586 Windows Deployment Services: How to setup and install WDS role Windows Server
fress install windows server 2025   downgrade of Windows Server datacenter to standard edition Convert Windows Server Datacenter to Standard: Install Windows Server via iDRAC Virtual Media Windows Server
CAL Removal How to Remove and Manage RDS Licenses Web 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

sysadmin top30a

  • xxxxxx 1
    Display Windows system information via the Windows registry Windows
  • ssl
    SSL Encrypted Communications explained Web Server
  • How to Block IP Addresses Using Group Policy (GPO) in Active Directory
    Block IP Addresses Using Group Policy (GPO) in Active Directory Network | Monitoring
  • Trellix MVISOSN
    How to install Trellix MVISON Endpoint Security | Vulnerability Scans and Assessment
  • banner
    What is Phishing Resistant Multi-Factor Authentication? Security | Vulnerability Scans and Assessment
  • change keyboard layout windows 10 thumb800
    How to use the On-Screen Keyboard Windows
  • powershell
    Set PowerShell Execution Policy via Windows Settings Windows
  • powershell auto run
    How to pause a PowerShell script Windows

Subscribe to Blog via Email

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

Join 1,832 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

AWS 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.