From 66ea6cc128c1aac7126cd6e44a264785ab0e31e5 Mon Sep 17 00:00:00 2001 From: "jonas@geiger-natur.de" Date: Thu, 27 Jun 2024 21:18:47 +0200 Subject: [PATCH] result image added --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f605ebe..9dc969c 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Download the powershell file and modify the following variables required +- $sourcePath - $destinationPath optional @@ -15,8 +16,12 @@ optional - $pattern (regular expression) - $timeSpan -After that, copy the following command to an administrator powershell terminal, run it and enter the requested entries. +After that, copy the following command to an administrator powershell terminal, run it and fill the requested entries. ``` Register-ScheduledTask -TaskName DownloadsFileSync -User (Read-Host 'User') -Password ([Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR((Read-Host 'Password' -AsSecureString)))) -RunLevel Highest -Action (New-ScheduledTaskAction -Execute powershell -Argument "-File $((Read-Host 'Path'))") -Trigger (New-ScheduledTaskTrigger -AtStartup); Start-ScheduledTask -TaskName "DownloadsFileSync" -``` \ No newline at end of file +``` + +This should be your result: + +![Register-ScheduledTask Success Example](images/registerscheduledtask_success_example.png) \ No newline at end of file