The summer arrival from FC Copenhagen opened the scoring with a header after 21 minutes and Nicky Maynard doubled the lead in the 34th minute.
James Norwood pulled a goal back for the Conference side just before half-time but Cardiff, who changed their entire team at the break, quickly restored their two-goal cushion through Peter Whittingham's penalty.
Matt Taylor completed the scoring four minutes later as an entertaining evening at the New Lawn finished 4-3 to the Premier League newcomers.
Wednesday’s pre-season results
Featuring a Premier League side
Melbourne Victory 0-2 Liverpool
South China 0 Manchester City 1
Forest Green 3-4 Cardiff City
Sheffield Wednesday 1-0 Rangers
Morecambe 0-1 Wigan Athletic
Billingham Syn 0-3 Middlesbrough
Bristol City 1-0 Reading
York City 0-0 Leicester City
Peterborough 1-1 Watford
MK Dons 4-3 Rayo Vallecano
Stocksbridge Park Steels 1-3 Rotherham United
Leyton Orient 2-1 New York Cosmos