I'm having a hard time finding the correct way to remove an email from the "notification" field via powershell.
I have to remove 1 of several email notifications from all jobs. Can this be done using powershell or do I need to remove them manully?
Do I just need to rewrite all the email adresses I do want or can I just say remove that one?
Will following code work or not? I don't have a testing environement so i need to know, if this will only affect the email notification job setting or also other settings?
Just to be sure there are several addresses specified in job notification settings as recipients, and you're willing to remove just one of those? Can you provide the current output of $JobOptions.NotificationOptions or $JobOptions.NotificationOptions.EmailNotificationAddresses? The actual addresses can be replaced of course.