Skip to content

Instantly share code, notes, and snippets.

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