Please use SetThreadExecutionState in the Bedrock server application to request Windows to keep the system from idling to sleep (Away Mode) while the server is running.
I have a pretty aggressive power policy set on my PC that I'm using to host my Bedrock server, and it's fine most of the time. It is configured to wake on lan, and I have a PowerShell script to send a magic packet. I can RDP to that PC to start up the Bedrock server. I'd like to then be able to disconnect my RDP session without having to mess with my power settings.
Current workarounds are to keep RDP running (that seems to prevent idling to sleep on the host PC), or changing power settings on the host PC and hope to remember to set them back when we're done playing.
Please sign in to leave a comment.
1 Comments