In the case, Volkswagen admitted it did not disclose the existence of the "two mode" software to the Australian government when it sought to import more than 57,000 vehicles from 2011 to 2015.
"Volkswagen's conduct was blatant and deliberate," ACCC chairman Rod Sims said in a statement on Friday.
Volkswagen engineers designed the "two mode" software in 2006, and it was kept secret until it was discovered in 2015. All new motor vehicles supplied or imported into Australia must comply with Australian standards for exhaust emissions.
"Essentially, Volkswagen's software made its diesel cars, utes and vans operate in two modes," Sims said. "One that was designed to test well and another that operated when the vehicle was actually being used and which produced higher emissions. This was concealed from Australian regulators and the tens of thousands of Australian consumers driving these vehicles."
Had the Volkswagen vehicles been tested while operating in the actual driving mode, they would have exceeded Australia's allowed nitrogen oxide emissions limits.
Volkswagen also admitted it made false representations when applying for the vehicles to be published on the Government's Green Vehicle Guide website.
"Volkswagen vehicles would not have obtained the ratings that they did on the Green Vehicle Guide website if the Government had been made aware of the effect of two-mode software on the emissions testing results," Sims said.
"Volkswagen's conduct undermined the integrity and functioning of Australia's vehicle import regulations which are designed to protect consumers."
Sims said the penalty "reflects a trend of ever higher penalties for breaches of Australian Consumer Law".
"The previous highest penalties of A$10m for Coles, Ford and Telstra were recently overtaken by penalties of A$12m against We Buy Houses and then penalties of A$26m ordered against vocational training provider Empower Institute," he said.
"Today's A$125m in penalties were imposed under the old penalty regimen of up to A$1.1m per breach. Under laws that came into effect late last year, maximum penalties are now the higher of A$10m, three times the profit or benefit obtained or, if this cannot be determined, 10 per cent of turnover."
The court order was made against German company Volkswagen AG. No orders were made against Australian subsidiary Volkswagen Group Australia Pty Ltd. As part of the resolution, the ACCC's case against Volkswagen subsidiary Audi AG and Audi Australia Pty Ltd has been dropped.
In September, Volkswagen agreed to pay up to A$127m to Australian consumers to settle a class action brought by Maurice Blackburn.
The Volkswagen-branded vehicles relevant to the court orders are:
• Amarok 2.0 litre (2011 to 2012)
• Caddy 1.6 and 2.0 litre (2010 to 2015)
• Eos 2.0 litre (2009 to 2014)
• Golf 1.6 and 2.0 litre (2009 to 2013)
• Jetta 1.6 and 2.0 litre (2009 to 2015)
• Passat 2.0 litre (2008 to 2015)
• Passat CC 2.0 litre (2008 to 2012)
• Polo 1.6 litre (2009 to 2014)
• Tiguan 2.0 litre (2008 to 2015)
• CC 2.0 litre (2011 to 2015)