Created
March 10, 2016 10:35
-
-
Save Stuart-Moore/ff66d1121177e3dc64d0 to your computer and use it in GitHub Desktop.
ScheduleGet-Diacritic.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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