This command can be used to make an NPC conscious (0) or unconscious (1).
setunconscious [0 / 1]
0 / 1 | Specify '1' (without quotes) to make your target unconscious. Specify '0' (without quotes) to make your target conscious. |
setunconscious 1
The above command would make your target unconscious.
player.setunconscious 1
This console command would make your character unconscious.
setunconscious 0
The above command would make your target conscious.