If you change the board, you will need to repair or re install 7. If its a factory pc you will have to BUY windows 7, unless you have a retail version which you dont or you wouldnt have asked. Changing the cpu will not affect the operating system except to speed it up.