Executing tasks when minimized RDP

Hi all,
i’ve a question, i’ve seen this guide to process a tasks when rdp is minimized


The only thing i’ve seen is when i shut down pc the registry key is deleted, how can i fix it?
Thanks

up pls

up please!!