Sentencing McGregor on seven charges of using a document and one charge of burglary, Judge Spear was shocked at his brazen behaviour.
"You are 36 years of age and a person who is no stranger to the courts ... this is disturbing offending because you felt prepared to push this young girl out of the way in what was one of the most blatant burglaries that I have heard for some time.
"Broad daylight, going to a home, knocking on the door, seeing that it was a young girl there, pushing her out of the way so you could go in and steal whatever you could to generate some cash."
A pre-sentence report described McGregor as being at a "reasonably high risk of reoffending".
McGregor had expressed remorse for pushing the child but the judge wasn't convinced.
"That's easy to say at this stage. What concerns me is that you were prepared to do so in broad daylight at this young girl's home.
"I do not have a victim impact report, and I do not know why that is, but I do expect that young girl will have been troubled at the very least by this violent confrontation with you."
McGregor has previous convictions for burglary and dishonesty but most were for violence offending, he said.