LevT2
16-02-2017, 19:05
подскажите готовый скрипт или полуфабрикат для сборки двуязычного образа с английским исходником, предпочтительно Powershell
предпочитаю запихнуть туда сразу максимум, всё что в принципе впихуется
хочу единственный скрипт для клиентских и серверных версий 10/2016 для себя любимого, от обновлений и отключения IE ESC и докуда получится - вплоть до настроек дефолтного профиля, таких как показ расширений в проводнике.
начинаю с такого
$Setup = "E:\Setup"
$ISO = "$Setup\ISO\Windows Server 2016.iso"
$CU = "$Setup\Cumulative Update for Windows Server 2016 for x64-based Systems (KB4010672)\windows10.0-kb4010672-x64_e12a6da8744518197757d978764b6275f9508692.msu"
$MountFolder = "E:\Mount"
$RefImage = "$Setup\REFWS2016-001.wim"
# Verify that the ISO and CU files existnote
if (!(Test-Path -path $ISO)) {Write-Warning "Could not find Windows Server 2016 ISO file. Aborting...";Break}
if (!(Test-Path -path $CU)) {Write-Warning "Cumulative Update for Windows Server 2016. Aborting...";Break}
# Mount the Windows Server 2016 ISO
Mount-DiskImage -ImagePath $ISO
$ISOImage = Get-DiskImage -ImagePath $ISO | Get-Volume
$ISODrive = [string]$ISOImage.DriveLetter+":"
# Extract the Windows Server 2016 Standard index to a new WIM
Export-WindowsImage -SourceImagePath "$ISODrive\Sources\install.wim" -SourceName "Windows Server 2016 SERVERSTANDARD" -DestinationImagePath $RefImage
# Add the KB******* CU to the Windows Server 2016 Standardimage
if (!(Test-Path -path $MountFolder)) {New-Item -path $MountFolder -ItemType Directory}
Mount-WindowsImage -ImagePath $RefImage -Index 1 -Path $MountFolder
Add-WindowsPackage -PackagePath $CU -Path $MountFolder
# Add .NET Framework 3.5.1 to the Windows Server 2016 Standard image
Add-WindowsPackage -PackagePath $ISODrive\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab -Path $MountFolder
# Dismount the Windows Server 2016 Standard image
DisMount-WindowsImage -Path $MountFolder -Save
# Dismount the Windows Server 2016 ISO
Dismount-DiskImage -ImagePath $ISO
предпочитаю запихнуть туда сразу максимум, всё что в принципе впихуется
хочу единственный скрипт для клиентских и серверных версий 10/2016 для себя любимого, от обновлений и отключения IE ESC и докуда получится - вплоть до настроек дефолтного профиля, таких как показ расширений в проводнике.
начинаю с такого
$Setup = "E:\Setup"
$ISO = "$Setup\ISO\Windows Server 2016.iso"
$CU = "$Setup\Cumulative Update for Windows Server 2016 for x64-based Systems (KB4010672)\windows10.0-kb4010672-x64_e12a6da8744518197757d978764b6275f9508692.msu"
$MountFolder = "E:\Mount"
$RefImage = "$Setup\REFWS2016-001.wim"
# Verify that the ISO and CU files existnote
if (!(Test-Path -path $ISO)) {Write-Warning "Could not find Windows Server 2016 ISO file. Aborting...";Break}
if (!(Test-Path -path $CU)) {Write-Warning "Cumulative Update for Windows Server 2016. Aborting...";Break}
# Mount the Windows Server 2016 ISO
Mount-DiskImage -ImagePath $ISO
$ISOImage = Get-DiskImage -ImagePath $ISO | Get-Volume
$ISODrive = [string]$ISOImage.DriveLetter+":"
# Extract the Windows Server 2016 Standard index to a new WIM
Export-WindowsImage -SourceImagePath "$ISODrive\Sources\install.wim" -SourceName "Windows Server 2016 SERVERSTANDARD" -DestinationImagePath $RefImage
# Add the KB******* CU to the Windows Server 2016 Standardimage
if (!(Test-Path -path $MountFolder)) {New-Item -path $MountFolder -ItemType Directory}
Mount-WindowsImage -ImagePath $RefImage -Index 1 -Path $MountFolder
Add-WindowsPackage -PackagePath $CU -Path $MountFolder
# Add .NET Framework 3.5.1 to the Windows Server 2016 Standard image
Add-WindowsPackage -PackagePath $ISODrive\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab -Path $MountFolder
# Dismount the Windows Server 2016 Standard image
DisMount-WindowsImage -Path $MountFolder -Save
# Dismount the Windows Server 2016 ISO
Dismount-DiskImage -ImagePath $ISO