I have a PowerShell script which checks to ensure certain backups have taken place. The script checks the date of certain flag / semaphore files and shows a message if the files are too old (which one is in this test)
This works fine when manually run from the following batch file
Powershell.exe -executionpolicy Bypass -File "Check-If-Backup-Failed.ps1"
but not when the same command line is added to the 'logon.bat' logon script.
What am I doing wrong (I presume it is permissions somehow) ?
NOTE: I don't get an error when I login - it just does nothing.