![]() 2) I don't want this because the whole point of the script is to allow me to simply double-click on a desktop shortcut to do this task. ![]() A popup window labeled "Windows PowerShell credential request" appeared asking for the credentials for [ 1) I'd not seen this happen before. There is a new behavior that I'd not seen before. So try the System Restore to go back to last good configuration and see if it helps. This time I had something in the clipboard. Most common cause may be the recent updates or simply corruption of files. + CategoryInfo : InvalidOperation: (:SmtpClient), SmtpException This is due to the Windows PowerShell execution policy being set to prevent untrusted scripts which can affect your Windows client environment. + Send-MailMessage -To $EmailTo -From $EmailFrom -Subject $Subject -Bod. Send-MailMessage : Unable to read data from the transport connection: net_io_connectionclosed. I had not copied anything into the clipboard. Im not sure if this is malware or if it was caused by the update. Ive been besieged by pop up 'Powershell has stopped working' that happens every 10 seconds or so. + CategoryInfo : NotSpecified: (:), MethodInvocationException Im not sure if this problem was caused by a windows update, but it seems to have started soon after I did it. + $SMTPClient.Send($EmailFrom,$EmailTo,$Subject,$Body) + FullyQualifiedErrorId : CannotConvertArgument,Įxception calling "Send" with "4" argument(s): "Failure sending mail." + CategoryInfo : InvalidArgument: (:), ParameterBindingException e -To $EmailTo -From $EmailFrom -Subject $Subject -Body $Body -Creden. Send-MailMessage : Cannot convert 'System.Object' to the type 'System.String' required by parameter 'Body'. Is there a more secure way to achieve the same result? Then the secondary issue is this: I was never really comfortable just having my login credentials sitting there in plaintext. Any thoughts on getting it to work will be appreciated. What I believe is an error message is written to the window, but it closes so fast that I can't read it.īut it's still bothering me and I'd like to have it back in working order. I couldn't tell if some Windows 10 update had killed it or something. At the time I failed at figuring out what had changed. ![]() I basically got tired of having to launch an e-mail window to send Zoom invites to [ It worked like a charm for a few months, and then stopped. $SMTPClient.Send($EmailFrom,$EmailTo,$Subject,$Body) $SMTPClient.Credentials = New-Object "nunya") $SMTPClient = New-Object ($SmtpServer, 587) Send-MailMessage -To $EmailTo -From $EmailFrom -Subject $Subject -Body $Body -Credential $EmailTo -SmtpServer $SMTPServer -UseSsl -Port 587 Research Triangle Powershell User Group remote-capableĪbout 14 months ago I was using this script to e-mail the contents of the clipboard: $EmailFrom = "Link".Philadelphia PowerShell User Group remote-capable.Madison Power Users Group remote-capable. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |