15 lines
421 B
PowerShell
15 lines
421 B
PowerShell
|
|
Set-ExecutionPolicy RemoteSigned
|
|
|
|
|
|
$path = [Environment]::GetFolderPath("MyDocuments")
|
|
cd $path
|
|
git clone https://github.com/t0is/VAT-software.git
|
|
|
|
$path = $path + "\VAT-software" + "\cron.bat"
|
|
|
|
$action = New-ScheduledTaskAction -Execute $path
|
|
$trigger = New-ScheduledTaskTrigger -Daily -At 10am
|
|
|
|
|
|
Register-ScheduledTask -Action $action -Trigger $trigger -TaskPath "MyTasks" -TaskName "git pull" -Description "git pull" |