From f5df719a3e363a5727042772f5327c495107b092 Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Thu, 31 Aug 2023 13:03:40 +0100 Subject: [PATCH] Update _index.en.md --- .../integrations/tactical-rmm/_index.en.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/self-host/client-deployment/integrations/tactical-rmm/_index.en.md b/content/self-host/client-deployment/integrations/tactical-rmm/_index.en.md index 535fcbb..54ab68d 100644 --- a/content/self-host/client-deployment/integrations/tactical-rmm/_index.en.md +++ b/content/self-host/client-deployment/integrations/tactical-rmm/_index.en.md @@ -64,6 +64,16 @@ cd $env:ProgramFiles\RustDesk\ ``` $ErrorActionPreference= 'silentlycontinue' +$confirmation_file = "C:\program files\RustDesk\runonce.txt" + +if ([System.IO.File]::Exists($confirmation_file)) { + echo "Confirmation file exists" + exit 0 +} +else +{ +$ErrorActionPreference= 'silentlycontinue' + net stop rustdesk > null $ProcessActive = Get-Process rustdesk -ErrorAction SilentlyContinue if($ProcessActive -ne $null) @@ -76,6 +86,10 @@ Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $rustdesk_pw Write-Output $rustdesk_pw net start rustdesk > null + +New-Item $confirmation_file > null + +} ``` ## RustDesk URL Action