How can I detect when "enable remote desktop" shuts off?

%3CLINGO-SUB%20id%3D%22lingo-sub-1092709%22%20slang%3D%22en-US%22%3EHow%20can%20I%20detect%20when%20%22enable%20remote%20desktop%22%20shuts%20off%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1092709%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20Windows%2010%20Pro%20(1909)%20running%20on%20an%20Intel%20Nuc%20that%20I%20control%20via%20Remote%20Desktop.%26nbsp%3B%20The%20problem%20that%20I'm%20having%20is%20that%20periodically%20the%20setting%20for%20%22Enable%20Remote%20Desktop%22%20will%20switch%20itself%20off.%26nbsp%3B%20I%20think%20this%20is%20likely%20an%20issue%20with%20the%20network%20drivers%20as%20when%20this%20happens%2C%20the%20machine%20will%20disconnect%20from%20the%20network%20too%20(I%20do%20have%20the%20latest%20Intel%20drivers%20and%20Windows%20update%20is%20100%25).%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20script%20that%20re-enables%20remote%20desktop%20and%20reconnects%20to%20the%20network%2C%20but%20right%20now%20I'm%20only%20running%20it%20on%20a%20timer%20every%20few%20minutes.%26nbsp%3B%20Is%20there%20a%20way%20to%20detect%20when%20the%20%22enable%20remote%20desktop%22%20setting%20is%20being%20switched%20so%20I%20run%20the%20script%20automatically%20at%20that%20time%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

I have Windows 10 Pro (1909) running on an Intel Nuc that I control via Remote Desktop.  The problem that I'm having is that periodically the setting for "Enable Remote Desktop" will switch itself off.  I think this is likely an issue with the network drivers as when this happens, the machine will disconnect from the network too (I do have the latest Intel drivers and Windows update is 100%).  

 

I have a script that re-enables remote desktop and reconnects to the network, but right now I'm only running it on a timer every few minutes.  Is there a way to detect when the "enable remote desktop" setting is being switched so I run the script automatically at that time? 

0 Replies