When creating a Windows 8 Image, you can remove the Windows Modern Apps with powershell import-module DISM
Get-AppXProvisionedPackage -online | RemoveAppxProvisionedPackage -online
Boot from a Windows 7/8 Boot Disc or Windows PE
Partition the internal disk :::bat
lis dis
sel dis 0
cle
cre par pri
act
for fs=ntfs quick label="VHD Host Disk"
ass letter=C
exi Make a VHDs folder on
For UEFI computers: :::bat
select disk 0
clean
convert gpt
create partition primary size=300
format quick fs=ntfs label="Windows RE Tools"
assign letter="T"
set
Mounting a WIM: Dism /Mount-Wim /WimFile:{Path To WIM} /index:{INDEX} /MountDir:{PATH TO MOUNT DIR} Adding a package to a WIM: Dism /image:{PATH TO MOUNT DIR} /Add-Package /PackagePath:{PATH TO
Create VHD with Diskpart For production environments the Microsoft recommends using fixed VHD type create vdisk file=C:\VHDs\{name}.vhd maximum={MAXMB} type=expandable select vdisk
:::perl
sub osascript($) { system 'osascript', map { ('-e', $_) } split(/\n/, $_[0]); } and to use it: :::applescript
osascript <<END;
tell application "Finder"
display dialog "Hello"
end