Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows Server 2022 / Windows Stucks at ‘Getting Windows Ready, Don’t Turn Off Computer ‘

September 16, 2025

Windows Stucks at ‘Getting Windows Ready, Don’t Turn Off Computer ‘

This is not the first time I’ve encountered the Getting Windows Ready. Don’t turn off your computer message and hangs at this stage for hours when rebooting or shutting down Windows. This problem most often occurs on Windows Server 2022, 2019, and 2016 hosts after installing Windows updates or adding/removing roles and features (but it can also happen on Windows 11 and 10).

When such a message appears, the main advice is to be patient and wait until Windows finishes installing updates and components. If you regularly install Windows updates on a computer, in rare cases, it will take more than one hour to complete the installation. If you haven’t installed updates for a long time, or your computer’s performance is poor, this installation may take several hours.

Computer is stuck at Getting Windows Ready, Don’t Turn Off Computer

However, in some cases, the computer may get stuck on the “Preparing Windows” message for hours, days, or even indefinitely. In cases where you intentionally need to shut down or restart the computer, you can forcibly interrupt the process (Of course, there are risks to image integrity, but sometimes there is simply no choice).

Powering off the computer during update installation is not recommended because it may corrupt the Windows image.

Next, we’ll look at how to gracefully terminate all background processes on a computer that has frozen during update installation or image preparation.

The idea behind this method is that the computer is accessible via the network during this phase of image servicing. Although it is not possible to access the computer desktop remotely via RDP, you can connect to it remotely using administrative tools.

You will need a different Windows computer on the same local network (LAN). First, check that you can access the computer that is stuck at the “Preparing Windows” stage over the network and that the SMB port (445) is open.

Test-NetConnection 192.168.123.10 -port 445

Test-NetConnection - check for the availability of a remote computer and open port

Open the Services snap-in (services.msc) and remotely connect to the problem host (Action -> Connect to another computer -> Specify the name or IP address of the remote server).

Manage services on a remote computer

Find the Windows Modules Installer in the list of services. This service often gets stuck in the “Stopping” state. Obviously, this service apparently prevents Windows from rebooting or shutting down properly.

Cannot stop service - the stop option is grayed out

The buttons for managing the TrustedInstaller service in the snap-in GUI are not available. It cannot be stopped or paused. The name of the service executable file can be found in the service properties (it is C:\Windows\servicing\TrustedInstaller.exe).

TrustedInstaller service is stuck at Stopping

If you want to forcefully stop a hung service, you need to use the remote computer command prompt. For this, you can use the PsExec tool. Open the Command Prompt on your computer and run the command:

PsExec.exe \\192.168.13.10 -i -u localadminname powershell.exe

Where:

  • 192.168.13.10 – the name or IP address of the computer to which you want to connect remotely.
  • localadminname – an account with administrator permissions on a remote computer (you will be prompted for a password)
  • If you do not specify -u localadminname, the current user’s credentials will be used to connect to the remote computer (convenient for a domain environment).
  • powershell.exe – open a PowerShell console on a remote computer

psexec - open shell on remote computer

Let’s take a look at what’s on the computer. List the top 10 processes by RAM usage:

Get-Process | Sort-Object WorkingSet -Descending | Select-Object -First 10 Name, Id, @{Name="Memory (MB)"; Expression={[math]::round($_.WorkingSet / 1MB, 2)}}

then by CPU usage:

Get-Process | Sort-Object CPU -Descending | Select-Object -First 10 Name, Id, @{Name="CPU Time (s)"; Expression={[math]::round($_.CPU, 2)}}

High CPU and RAM usage by TiWorker process

As you can see here, the host is experiencing high resource usage from the TiWorker.exe process. The TiWorker process (Trusted Installer Worker) is a key component of the Windows Modules Installer (TrustedInstaller) service. This service is responsible for handling updates and Windows system components.

Check how long this process has been running:

Get-Process TiWorker | Select-Object Id, Name, CPU, WorkingSet, StartTime

get-process run time

Check which Windows services are stuck in the “Stopping” state:

Get-CimInstance -Class win32_service | where-Object state -eq 'stop pending'

List Windows service hang on stopping

To force-terminate the TrustedInstaller service and all related components, run the following command:

taskkill /IM TrustedInstaller.exe /F

You can stop the TrustedInstaller service remotely without connecting to the Windows command shell. Use the command:

pskill.exe \\192.168.13.10 TrustedInstaller.exe

Or, use this command when you need to specify user credentials for the connection.

taskkill.exe /s 192.168.13.10 /u woshub\admin_account /p MyPassw0rd! /im TrustedInstaller.exe

After this, the message “Shutting down” should appear on the screen of the stuck server. After a few seconds, it should reboot correctly.

Gracefully Shutting down Windows

It is generally not recommended to force-terminate TrustedInstaller service processes. However, if the computer remains stuck at the Windows preparation stage for an unusually long time, the only viable option may be to force a reboot or shutdown

After booting up Windows, check the integrity of the operating system image. Use DISM and SFC to find and repair any errors found:

dism.exe /online /cleanup-image /restorehealth
sfc /scannow

If Windows won’t boot up after installing updates, you can uninstall the latest Windows updates using the LiveCD/installation media or through the Windows Recovery Environment (WinRE).
0 comment
0
Facebook Twitter Google + Pinterest
Windows 10Windows 11Windows Server 2022
previous post
Clean Up ETL Log Files in ProgramData
next post
How to Hide a Disk Partition (Drive) in Windows

Related Reading

How to Prefer IPv4 over IPv6 in Windows...

April 15, 2025

Exclude a Specific User or Computer from Group...

March 16, 2025

How to Detect Which User Installed or Removed...

June 25, 2025

Fix: The referenced assembly could not be found...

March 25, 2025

Network Monitor: Capture and Analyze Network Traffic on...

November 12, 2024

Collecting Windows and Active Directory Event Logs with...

February 7, 2025

Run PowerShell Scripts on a Schedule with Task...

October 3, 2024

Send a WhatsApp Message from the CommandLine (Shell)

December 3, 2024

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Windows Stucks at ‘Getting Windows Ready, Don’t Turn Off Computer ‘

    September 15, 2025
  • Fix: Slow Startup of PowerShell Console and Scripts

    September 3, 2025
  • DPI Scaling and Font Size in RDP (RDS) Session

    August 27, 2025
  • Proxmox: Share a Host Directory with VMs via VirtioFS

    August 18, 2025
  • How to Find AD Users with Blank Passwords (Password-Not-Required)

    July 24, 2025
  • Run Elevated Commands with Sudo on Windows 11

    July 16, 2025
  • Find a Process Causing High Disk Usage on Windows

    July 15, 2025
  • Fix: Microsoft Defender Not Updating Automatically in Windows

    July 8, 2025
  • Create a Windows Server VM on Proxmox (Step-by-Step)

    July 7, 2025
  • How to Detect Which User Installed or Removed a Program on Windows

    June 23, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Upgrading to Windows 11 on Unsupported Hardware
  • Configuring RemoteApps Hosted on Windows 10/11 (without Windows Server)
  • Create a Custom Windows Image with Pre-installed Apps
  • Get Started with Docker on Windows (WSL2) without Docker Desktop
  • How to Assign (Passthrough) a Physical GPU to a Hyper-V Virtual Machine
  • How to Copy/Paste to MS Word without Losing Formatting
  • Fix: Windows Update Tab (Button) is Missing from Settings
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top