have the ps script to verify he content of file Monday- Friday at 8:00 PM except holidays . If the word imported is not found in the text m-f I want to send an email.
Need guidance on how to finish this.
$t = get-date -f d
$holidays = "01/07/2013","01/01/2013","01/21/2013","02/18/2013","05/27/2013","07/04/2013","09/02/2013","10/14/2013","11/11/2013","11/28/2013","11/29/2013","12/25/2013","01/18/2013"
if ($t -eq $holidays)
$a = (gc \\noctest1\c$\temp\testimp.txt) -match 'imported'
if ($a -eq "imported")
{
write-host "Yes"
}
else
{
write-host "No"