Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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