Files
scripts/windows/windows-setup.sh
2023-09-03 02:09:04 +03:00

9 lines
323 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# shell command to get the windows CD key
# (c) 2018 vbettag - wraper for powershell
# - requires powershell
# - requires admin rights
# shell command to get the windows CD key
# get the windows CD key
powershell -Command "(Get-WmiObject -query select * from SoftwareLicensingService).OA3xOriginalProductKey"