Officials in Iran said Thursday they won't stop test-launching missiles following the Trump administration putting Tehran "on notice."

A top aide to Iran's Supreme Leader Ayatollah Ali Khamenei called the threat "useless"

"This is not the first time that an inexperienced person has threatened Iran," said Ali Akbar Velayati, an adviser on foreign affairs.

"Iran does not need permission from any country to defend itself," he added.

The statement came after White House National Security Adviser Michael Flynn said Wednesday that the weekend test of a medium-range ballistic missile was a violation of a 2015 U.N. Security Council resolution.

"The Trump administration condemns such actions by Iran that undermine security, prosperity and stability throughout and beyond the Middle East and which place American lives at risk," said Flynn.

That was followed up by tweets from President Trump this morning.

Iran has been formally PUT ON NOTICE for firing a ballistic missile.Should have been thankful for the terrible deal the U.S. made with them! — Donald J. Trump (@realDonaldTrump) February 2, 2017

Iran was on its last legs and ready to collapse until the U.S. came along and gave it a life-line in the form of the Iran Deal: $150 billion — Donald J. Trump (@realDonaldTrump) February 2, 2017

Iran maintains the missiles are defensive and not capable of carrying a nuclear warhead and therefore not in violation of the resolution.

Watch the report above from Fox News' Jennifer Griffin.

Democrats Fast-Track Bill to Make California a 'Sanctuary State'

Pelosi to Fellow Dem Lawmaker at Protest: 'Tell Them You're a Muslim'

Jon Stewart Resurfaces to Bash Trump for 'Purposeful, Vindictive Chaos'