NurPhoto/Getty Images

Tech's heaviest hitters are speaking out against President Donald Trump's decision to ban transgender people from the US military.

Trump said in a trio of tweets Wednesday that he would not allow transgender people "to serve in any capacity in the U.S. Military" The decision reverses a still under review policy previously approved by the Defense Department under former President Barack Obama that would let transgender people openly serve in the military.

After consultation with my Generals and military experts, please be advised that the United States Government will not accept or allow...... — Donald J. Trump (@realDonaldTrump) July 26, 2017

....Transgender individuals to serve in any capacity in the U.S. Military. Our military must be focused on decisive and overwhelming..... — Donald J. Trump (@realDonaldTrump) July 26, 2017

....victory and cannot be burdened with the tremendous medical costs and disruption that transgender in the military would entail. Thank you — Donald J. Trump (@realDonaldTrump) July 26, 2017

Trump's tweets led to backlash from tech execs, many of whom also voiced objections to his immigration ban earlier this year. Facebook CEO Mark Zuckerberg, a frequent Trump critic, said on his personal page, "Everyone should be able to serve their country -- no matter who they are."

Everyone should be able to serve their country -- no matter who they are. Posted by Mark Zuckerberg on Wednesday, July 26, 2017

Apple CEO Tim Cook tweeted his position along with the hashtag, #LetThemServe."

We are indebted to all who serve. Discrimination against anyone holds everyone back. #LetThemServe — Tim Cook (@tim_cook) July 26, 2017

Google CEO Sundar Pichai, also used that same hashtag, tweeting, "I am grateful to the transgender members of the military for their service."

I am grateful to the transgender members of the military for their service. # LetThemServe. — Sundar Pichai (@sundarpichai) July 26, 2017

Not to be outdone, Twitter CEO/co-founder Jack Dorsey, tweeted "discrimination in any form is wrong for all of us."

Discrimination in any form is wrong for all of us #LetThemServe https://t.co/3cxL0fNdbv — jack (@jack) July 26, 2017

Trump's transgender tweets are interesting, considering he tweeted last year while running for president that he would fight for the rights of the LGBT community. His tweet came just days after a nightclub shooting in Orlando, Florida, left 49 people dead. Many were from the LGBTQ community.

Thank you to the LGBT community! I will fight for you while Hillary brings in more people that will threaten your freedoms and beliefs. — Donald J. Trump (@realDonaldTrump) June 14, 2016

Meanwhile, Microsoft President Ben Smith tweeted, "We honor and respect all who serve, including the transgender members of our military. #LetThemServe"

We honor and respect all who serve, including the transgender members of our military. #LetThemServe — Brad Smith (@BradSmi) July 26, 2017

SurveyMonkey CEO Zander Lurie also weighed in with a tweet and the hashtag #transrightsarehumanrights.

We @SurveyMonkey believe inclusivity drives success and stand with transgender individuals #transrightsarehumanrights — zander lurie (@zlurie) July 26, 2017

And Salesforce CEO Marc Benioff tweeted with an image, "#equalityforall."

First published July 26, 2:57 p.m. PT.

Update, 4:59 p.m.: Adds comment from a tech CEO.

Intolerance on the Internet: Online abuse is as old as the internet and it's only getting worse. It exacts a very real toll.

Special Reports: CNET's in-depth features in one place.