PowerShell Command Error Cheat Code

Brass Contributor

If Any Similar Command is Throwing this kind of error:

 

venkatkirankona_0-1707120046703.png

 

We can use this Cheat Code:

 

venkatkirankona_0-1707120180085.png

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

 

Best Regards,

Venkat Kiran Kona 

1 Reply

Hi @venkatkirankona,

can you please post an example of the command that is having this issue?

The error messages in the image are related to the PowerShell commands Send-MailMessage and Invoke-RestMethod and they indicate issues with the transport connection and an unexpected error during a send operation.


Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.


If the post was useful in other ways, please consider giving it Like.


Kindest regards,


Leon Pavesic
(LinkedIn)
(Twitter)