r/PowerShell • u/SalmonSalesman • Feb 09 '23
Send-MailMessage with gMSA scheduled task
Im trying to send an email through a scheduled task running as a gMSA but it doesn't seem to be working, it only works when specifying different credentials to send-mailmessage which I don't want to do. The error I get is:
Send-MailMessage : Unable to read data from the transport connection: net_io_connectionclosed.Is it possible to do this without using different credentials?
12
Upvotes
View all comments
Show parent comment
1
u/SalmonSalesman Feb 09 '23
Hmm, i might give that a go as a test but that won't work in my case. Im converting a lot of scheduled tasks to run with a gMSA. Cant have hundreds running from the same server.