Forum Discussion

venkatkirankona's avatar
venkatkirankona
Brass Contributor
Feb 05, 2024

PowerShell Command Error Cheat Code

If Any Similar Command is Throwing this kind of error:

 

 

We can use this Cheat Code:

 

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

 

Best Regards,

Venkat Kiran Kona 

  • LeonPavesic's avatar
    LeonPavesic
    Silver Contributor

    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)

Resources