There currently are a variety of options to travel by night train from Vienna (Austria) to Rosenheim (Germany), taking between approximately 6 and 7 hours: Namely the EN 50462 and the EN 442. These lines are operated by MÁV-Start.
MÁV-Start, Hungary's national passenger railway, operates domestic and cross-border trains throughout the region.