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

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.