I have created a script with atert.ps1 extention, Script is to send email atert when server reduntancy is lost. but i am unable to execute the script.
Mailsubject = "Dell Server Alert on AACREXCH07"
Run in powershell as Dellalert.ps1 testemail
but getting an error The term 'EmailFromemail@example.com' is not recognized as the name of a cmd
let, function, script file, or operable program. Check the spelling of the name
, or if a path was included, verify that the path is correct and try again.
At C:\script\DellAlert.ps1:1 char:32
+ EmailFrom="firstname.lastname@example.org" <<<<
+ CategoryInfo : ObjectNotFound: (EmailFromemail@example.com:S
tring) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException