Skip to content

Instantly share code, notes, and snippets.

@kowill
Last active March 4, 2016 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kowill/83494cfdda3173a37a6a to your computer and use it in GitHub Desktop.
Save kowill/83494cfdda3173a37a6a to your computer and use it in GitHub Desktop.
$Dst = "F:\tmp"
$TargetDrive = "I"
cd $Dst
#mkdir TP4ISOから
Copy-Item ($TargetDrive + ":\NanoServer") NanoServer -Recurse
cd NanoServer
mkdir dism
Copy-Item ($TargetDrive + ":\sources\api*downlevel*.dll") dism
Copy-Item ($TargetDrive + ":\sources\dism*") dism
Copy-Item ($TargetDrive + ":\sources\*provider*") dism -Recurse
mkdir mountdir
#適当なとこから
Copy-Item ($Dst + "\unattend.xml") .
#一応読専は外しておく
Get-ChildItem -File -Recurse | Set-ItemProperty -Name IsReadOnly -Value $false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment