Is there a way to prevent your computer from sending metadata to Microsoft?

I wanted to know because everytime i get these updates i feel the company is scrolling through my computer for every activity and click i have ever done. Plus i like to type up ideas and inventions and feel as if they are uploading and mining everything in cloud with or with out my permission. Also a way to disable the mic/voice listing ad targeting would be helpful too. It could be a program i have to compile or code i have to manually delete or edit as long as the instructions are clear and concise.

Thanks

Privacy Galaxy!