The 31-year-old appeared in the Wellington District Court this morning, where he was granted interim name suppression by Judge Hastings.
The man is listed as living in Auckland and is charged with resisting police, intentional damage with reckless disregard to parliamentary property, and possessing an offensive weapon in public.
He also faces an unrelated charge of intentionally damaging a glass wall of a Rotorua petrol station in early December.
Judge Hastings updated media after the hearing about what happened.
He said the man was bailed to a secure facility until late January.
He said the man made comments during the hearing which confirmed everyone's concerns about the man's mental health.
Those comments did not include any racial or political references, nor any reference to incidents in the US.
Under New Zealand legislation, media should not be barred from the courtroom except in cases where the security of New Zealand was at stake.
While the legislation relating to that scenario was not cited today, media were informed the room the hearing was unable to hold any more people than those essential to the case, due to its physical size.
It is rare for this particular room in the Wellington District Court to be used, but in this situation the man's mental state warranted it. The court security staff also made a call that it was a security risk to have him appear in a normal courtroom.