The man provided a DNA sample for a legally binding paternity test which showed he was not the father.
As a result, the real father's name was removed from his son's birth certificate.
During a battle over visiting rights, a Family Court judge picked up the discrepancy and reported the woman to police.
Late last year, Waitakere District Court Judge Simon Maude requested new DNA samples and soon after the mother asked DNA Diagnostics to destroy the samples she had requested.
In an affidavit to the court, the mother claimed she wanted the biological father off the scene because she feared for her safety after their volatile relationship ended.
Judge Wilson said, "I can understand your motivation but it does not excuse the lengths to which you went."
He said the biological father became anxious and stressed after being told he had been removed from the birth certificate.
The father, who also has name suppression, said he was disappointed with the sentence.
"She got off lightly for lying in court, supplying false documents and wasting thousands and thousands of dollars of taxpayers' money and police time," he said.
New Zealand Law Society general manager regulatory Mary Ollivier said a conviction would not stop people becoming registered lawyers.