Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Get Windows Key
- for /f "tokens=2 delims==" %%i in ('"wmic path softwarelicensingservice get oa3xoriginalproductkey /format:list"') do set key=%%i
- echo:
- echo Your Windows Licensing Key Is: %key%
- echo:
- set /p doCopy="Would you like copy the key to your clipboard? (y/n) "
- if %doCopy%==y (
- echo | set /p=%key%| clip
- echo Key successfully copied!
- echo:
- )
- echo [Press any key to close this window]
- pause >nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement