Skip to content

Instantly share code, notes, and snippets.

@Stuart-Moore
Created March 10, 2016 10:35
Show Gist options
  • Save Stuart-Moore/ff66d1121177e3dc64d0 to your computer and use it in GitHub Desktop.
Save Stuart-Moore/ff66d1121177e3dc64d0 to your computer and use it in GitHub Desktop.
ScheduleGet-Diacritic.ps1
#Assumes the solution ps1 is in the c:\scripts folder
Register-ScheduledTask -Action (New-ScheduledTaskAction -execute 'PowerShell.exe' -Argument "c:\scripts\Get-Diacritic.ps1; get-diacritic -Path 'c:\temp\fileshare\' -To stuart.moore@ntu.ac.uk -AsHTML"
) -Trigger (New-ScheduledTaskTrigger -weekly -WeeksInterval 2 -DaysOfWeek Saturday -At 11pm) -TaskName 'Find files with diacritic marks'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment