Script to find windows serial key

Can you write a script to get the windows serial key’s. I;ve got to reinstall several windows 10 computers but there is no serial keys anywhere. unless you know of a way to get them without a script.

Check out the script sections this has already been done;)

Hi @monster-it
You may want to check and try the following script: Get the Digital Product ID in Windows

works great thank you.