result image added

This commit is contained in:
jonas@geiger-natur.de
2024-06-27 21:18:47 +02:00
parent 36a6880357
commit 66ea6cc128

View File

@@ -7,6 +7,7 @@ Download the powershell file and modify the following variables
required required
- $sourcePath
- $destinationPath - $destinationPath
optional optional
@@ -15,8 +16,12 @@ optional
- $pattern (regular expression) - $pattern (regular expression)
- $timeSpan - $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" 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"
``` ```
This should be your result:
![Register-ScheduledTask Success Example](images/registerscheduledtask_success_example.png)