Skip to content

Commit

Permalink
Adds support for Windows 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdcastel committed Aug 10, 2023
1 parent 51af26b commit 843f27e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
12 changes: 11 additions & 1 deletion New-VHDXFromWindowsImage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ param(
[string]$AdministratorPassword,

[Parameter(Mandatory=$true)]
[ValidateSet('Server2022Datacenter','Server2022Standard','Server2019Datacenter','Server2019Standard','Server2016Datacenter','Server2016Standard','Windows10Enterprise','Windows10Professional','Windows81Professional')]
[ValidateSet('Server2022Datacenter',
'Server2022Standard',
'Server2019Datacenter',
'Server2019Standard',
'Server2016Datacenter',
'Server2016Standard',
'Windows11Enterprise',
'Windows11Professional',
'Windows10Enterprise',
'Windows10Professional',
'Windows81Professional')]
[string]$Version,

[string]$Locale = 'en-US',
Expand Down
12 changes: 11 additions & 1 deletion New-VMFromWindowsImage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ param(
[string]$AdministratorPassword,

[Parameter(Mandatory=$true)]
[ValidateSet('Server2022Datacenter','Server2022Standard','Server2019Datacenter','Server2019Standard','Server2016Datacenter','Server2016Standard','Windows10Enterprise','Windows10Professional','Windows81Professional')]
[ValidateSet('Server2022Datacenter',
'Server2022Standard',
'Server2019Datacenter',
'Server2019Standard',
'Server2016Datacenter',
'Server2016Standard',
'Windows11Enterprise',
'Windows11Professional',
'Windows10Enterprise',
'Windows10Professional',
'Windows81Professional')]
[string]$Version,

[Parameter(Mandatory=$true)]
Expand Down
14 changes: 13 additions & 1 deletion New-WindowsUnattendFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ param(
[string]$AdministratorPassword,

[Parameter(Mandatory=$true)]
[ValidateSet('Server2022Datacenter','Server2022Standard','Server2019Datacenter','Server2019Standard','Server2016Datacenter','Server2016Standard','Windows10Enterprise','Windows10Professional','Windows81Professional')]
[ValidateSet('Server2022Datacenter',
'Server2022Standard',
'Server2019Datacenter',
'Server2019Standard',
'Server2016Datacenter',
'Server2016Standard',
'Windows11Enterprise',
'Windows11Professional',
'Windows10Enterprise',
'Windows10Professional',
'Windows81Professional')]
[string]$Version,

[ValidateLength(0, 15)]
Expand Down Expand Up @@ -92,6 +102,8 @@ $key = switch ($Version){
'Server2019Standard' {'N69G4-B89J2-4G8F4-WWYCC-J464C'}
'Server2016Datacenter' {'CB7KF-BWN84-R7R2Y-793K2-8XDDG'}
'Server2016Standard' {'WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY'}
'Windows11Enterprise' {'NPPR9-FWDCX-D2C8J-H872K-2YT43'}
'Windows11Professional' {'W269N-WFGWX-YVC9B-4J6C9-T83GX'}
'Windows10Enterprise' {'NPPR9-FWDCX-D2C8J-H872K-2YT43'}
'Windows10Professional' {'W269N-WFGWX-YVC9B-4J6C9-T83GX'}
'Windows81Professional' {'GCRJD-8NW9H-F2CDX-CCM8D-9D6T9'}
Expand Down

0 comments on commit 843f27e

Please sign in to comment.