Battle for Windhelm

Background
I am to join General Tullius in the final attack on Windhelm, putting an end to the Stormcloak rebellion, once and for all.

Walkthrough
The Battle for Windhelm is the final Imperial Legion quest, ordered by General Tullius, who wishes to take over the city of Windhelm to find Ulfric Stormcloak and force him to submit. After doing the quest "The Battle for Fort Amol," Legate Rikke will order you to meet them outside Windhelm for General Tullius' speech.

Tullius: All right. It's time to deliver the final blow to the Stormcloak rebellion. You have all fought bravely, and sacrificed much to bring us to this point. Ulfric thinks he can hide behind the walls of his castle. But we will fight our way in and drag him out through the rubble to face justice. Because this is the end for them, the Stormcloaks will fight like cornered rats. They will be fierce and crafty. But they are no match for Legionnaires. You are the best and the brightest warriors in Tamriel. Professional soldiers, fearless and devastating. The Emperor will be paying close attention to what happens here today. Men who distinguish themselves will be well rewarded. Ready now! Everyone, with me! For the Empire! For the Legion!"

After the speech, the Dragonborn will have to fight through waves of Stormcloak soldiers alongside Tullius, Rikke, and the Legionnaires. The Palace of the Kings is then raided, where Ulfric and his right-hand man Galmar Stone-Fist await.

Tullius: "Secure the door."

Rikke: "Already done, sir."

Tullius: "Ulfric Stormcloak! You are guilty of insurrection, murder of Imperial citizens, the assassination of King Torygg, and high treason against the Empire. It's over."

Galmar: "Not while I'm still breathing, it's not."

Rikke: "Step aside Galmar. We're here to accept Ulfric's surrender."

Ulfric: "I'll never surrender Skyrim into the hands of a corrupt and dying Empire."

Rikke: "Skyrim doesn't belong to you, Ulfric."

Ulfric: "No... But I belong to her."

Tullius: "Enough! You are traitors and will die traitors' deaths. Stand down and face public execution, or advance and face summary execution by my hands. It matters little to me. Either way I'll be sending your heads back to Cyrodiil."

Galmar: "Well? What are we waiting for?"

Once Ulfric is defeated, he will request that the Dragonborn be the one to kill him, as it would "make for a better song," although the Dragonborn can refuse and allow General Tullius to strike the final blow.

Tullius: "Well Ulfric, you can't escape from me this time. Any last requests before I send you to... to wherever you people go when you die."

Rikke: "Sovngarde... sir."

Tullius: "Right. Well?"

Ulfric: "Let the Dragonborn be the one to do it. It'll make for a better song."

Tullius: "Song or not, I just want it done."

After Ulfric is killed, General Tullius allow the Dragonborn to keep his leveled sword as a reward.

Rikke: "Talos be with you..."

Tullius: "What was that, Legate?"

Rikke: "Nothing. Just saying goodbye."

Tullius: "Well, the men will be expecting some kind of speech. And we'll need to hand the city over to that Free-Winter fellow."

Rikke: "Brunwulf. Yes, I've sent men to protect him and bring him here. Windhelm will need a government quickly if we are to prevent more violence."

Tullius: "The Legion will be staying here for quite some time. I don't expect there to be any further violence."

The Dragonborn must then follow Tullius and Legate Rikke outside. The Legionnaires will be waiting outside, and Tullius will make another speech:

Rikke: "Attention! General Tullius has an announcement!"

Tullius: "The rebellion is over! Ulfric Stormcloak is dead!"

Imperial Soldiers: (Cheer)

Tullius: "His head will be sent to Cyrodiil where it will adorn the walls of the Imperial City! Let this day be a final warning to those who still call themselves Stormcloaks! We are turning the city over to Brunwulf Free-Winter, an honorable and faithful man! Many of you will be staying in Windhelm to aid the Jarl in restoring order and stamping out any embers of rebellion that may still smolder here! In appreciation for your exemplary service, I am doubling your pay and compensation for the widows of your fallen comrades!"

Imperial Soldiers: (Cheer)

Tullius: "I am proud of all of you! All hail the Emperor! All hail his legionaires!"

Imperial Soldiers: (Cheer)

Upon returning to Windhelm, Brunwulf Free-Winter will become the new Jarl and will offer the Dragonborn the title of Thane of Eastmarch, as well as the opportunity to buy Hjerim, the house available in Windhelm (12,000{{{g}}). At this point the city is now under Imperial control, and thus the Stormcloak guards are replaced by Imperial Soldiers.

Trivia

 * After completing this quest, it is possible that going to the docks causes "Windhelm Docks Discovered" to be shown and marking an icon for it on the map. It should be noted that the icon will not disappear when using the console command tmm.
 * During this battle, Stormcloak Soldiers will keep spawning if the Dragonborn stays in one area too long, or if the Dragonborn goes into an area without breaking down the barricades for the Imperial Soldiers to join the fight.
 * After Ulfric has just been killed is a good time to loot the palace if desired. A room upstairs via the first door on the left after entering the palace is filled with the Stormcloak-aligned Jarls and their housecarls, many of whom are tagged as "essential."
 * After General Tullius is done making his speech, both he and Legate Rikke will leave, but the group of Imperial soldiers will not.
 * It is impossible to betray General Tullius at this point, as he is tagged as Essential, and thus he cannot be killed.
 * Once killed, the bodies of Stormcloaks de-spawn almost instantly, making looting them very difficult.
 * It is possible for a dragon to spawn during the battle outside the palace.
 * If Tullius and Rikke and all the imperial soldiers are killed using console commands after the speech, Ulfric and Galmar's body will not disappear from the Palace of the Kings, but Tullius, Rikke and all the Imperial Soldiers' bodies disappear.
 * If Durnehviir or Odahviing are summoned during the battle, they will only kill Stormcloaks, and not Imperial soldiers.
 * It is possible to darken the sky with Bloodcursed Elven Arrows from inside Windhelm; the effect will then last through the fight and ensuing victory speech.
 * After the quest is over, if the Dragonborn talks to Rikke she'll say she expects them to clear out any Stormcloak camps they come across, however, the Stormcloak officers in those camps will still be essential so they can't be killed.
 * After General Tullius's speech, Legate Rikke mentions that another war with the Aldmeri Dominion may happen.
 * There are catapults at the Eastmarch Imperial Camp which can be activated to launch catapults at the city. This has no known effect on the quest, however.

Bugs
Die Schlacht um Windhelm La batalla de Ventalia Битва за Виндхельм