The quest id is CWObj for that one, "Liberation of Skyrim". I still can't get it to work though. (Edit: Quest giver would be Ulfric Stormcloak or Galmar Stone-Fist) Doing the quest naturally leaves two objectives not met, talking to Ulfric and conquering the Haafingar tower. Using "setstage CWObj 255" completes the talk to Ulfric objective, and completes the quest, but leaves the Haafingar objective unchecked. None of the other setstage numbers worked. The related "Battle for Solitude" quest completes naturally and without any problems as far as I can see. After completing the quests, naturally or with the console, I'm left with a Solitude in permanent seige mode. Fire everywhere and none of the usual NPCs, and both it and the Blue Palace are absent from the map. There are Stormcloak soldiers milling about outside Castle Dour but they're left over from the battle and Ulfric's speech, they're not bounty guards. Honestly, I don't even know if it's this quest causing the problem, it just looks suspect because it's completing with objectives not met. So yeah, if anyone can figure out a way to end the Solitude seige mode then I'd be very grateful.