@dkaczoro
I ran into a similar issues launching the script. Ultimately, I used @BulmersheTech 's script with a couple tweaks. I had to share the default actions folder with my domain admin service account and enable remote registry access via GPO.
I migrated my Lansweeper server from a lab environment to production, so I also had to change the default action path in Lansweeper configuration page.
Here's my cmd file:
@echo off
setlocal
set PSPATH=\\<network path to action folder>
set PC=%1
%PSPATH%\delprof2.exe /c:\\%PC% /d:90 /ntuserini /ed:admin* /i
timeout 20
Increasing the timeout helped troubleshoot the remote registry access error.