![]() ![]() $Action = New-ScheduledTaskAction -Execute "PowerShell.exe" -Argument "-ExecutionPolicy Bypass -File $ScriptPath" $ScriptPath = "C:\Users\my_userDesktop\file_sync.ps1" fin files from a specified source directory to a specified destination directory" $Description = "This task will run periodically to sync. I had a similar challenge when trying to create a scheduled task on Powershell to copy files to a mapped drive.īelow was my scheduled task commands: $TaskName = "FileSync"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |