My server goes off when I do a remote desktop after a few seconds of logon. I am

Dani AI

Generated

reported that the server becomes unavailable a few seconds after an RDP logon. correctly noted that remote sessions can change or terminate the console session and that can stop apps that run only in the interactive (console) session. The thread doesn’t make clear whether the machine actually powers off/restarts, crashes (BSOD), or simply ends a particular process—those are entirely different root causes.

Practical diagnostic checklist (start here):

  • Check Event Viewer (System and Application) for shutdown/crash entries. Useful PowerShell filters:
    
    Get-WinEvent -FilterHashtable @{LogName='System'; Id=@(41,6008,1074)} -MaxEvents 50 |
    Format-List TimeCreated, Id, Message

Get-ChildItem C:\Windows\Minidump -Force |
Sort-Object LastWriteTime -Descending | Select-Object -First 10


- Verify whether the RDP session is attaching to the console (`mstsc /admin`) or creating a separate session.  
- Inspect Task Scheduler, logon scripts, GPOs, third‑party management/antivirus agents, and any scheduled restart policy.  
- If the machine truly shuts down or reboots, check for Kernel-Power/Event ID 41 and any device drivers or firmware updates installed recently.

Common causes and mitigations:
- If an application is running only in the console session, an RDP logon can leave it stopped. Run that application as a Windows service, or use an administrative console session (`mstsc /admin`) or proper RDS configuration so it keeps running.  
- If the server is crashing or losing power, analyze minidumps and look for driver or hardware errors; engage out‑of‑band management (iDRAC/iLO) or the datacenter for hardware checks.  
- If a policy, script, or agent is intentionally logging off or shutting down on remote logon, locate it via `gpresult /h` and Task Scheduler.

Caution: make changes during a maintenance window on production servers. The single most useful evidence is the exact Event Viewer entries and any minidump files timestamped at the failure—those will distinguish a session/logoff issue from a crash or power problem.

Recommended Answers

All 2 Replies

My server goes off when I do a remote desktop after a few seconds of logon. I am looking to know what can caused this and solutions to solve it

While vague I do think this would be expected if this is you taking over a Windows machine via remote desktop. Next time share what this PC is running. To remote in could have the PC log the current user out and kill a "server" or service to start up your new session.

That is, working as expected.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.