I went with the compsec command. I didn't know you could call reg files like that without being prompted. This is so much easier then the writevalue command. Thanks guys!