"According to the interim relief, Rajapaksa and his disputed government have been prevented from acting as PM, cabinet and deputy ministers", said a lawyer, who was present at the hearing.
The court fixed dates from December 12 to proceed with the hearing of the petition while notice was also issued on the 49-member Cabinet including Prime Minister Rajapaksa to appear before the court on that date.
Mr. Sirisena later dissolved Parliament, nearly 20 months before its term was to end, and ordered a snap election.
But Rajapaksa has failed to show a working majority in parliament and lost two no-confidence votes.
Green Bay Packers fire coach Mike McCarthy after loss to Cardinals
The Green Bay Packers fired head coach Mike McCarthy on Sunday, after the team's home loss to the Cardinals. Ending the year above.500 is even unlikely, though, given Green Bay's recent three-game losing streak.
President Maithripala Sirisena, who appointed Rajapakse, dismissed parliament last month but the Supreme Court intervened to restore it.
Both Mr. Wickremesinghe and Mr. Rajapaksa claim to be the prime ministers.
The Sri Lankan president has said that due to sharp personal differences with Wickremesinghe he would not reappoint him as the Prime Minister.
The petition was signed by 122 Parliamentarians claiming that Rajapaksa has no support in Parliament to be Prime Minister.
Speculation are that President Sirisena may remove Mr. Rajapaksa on Wednesday when another motion would be taken up in Parliament and is defeated.