New Question

Revision history [back]

click to hide/show revision 1
initial version

MaaS Windows PE Boot Images

I need to create an image for use with MaaS. The only solution that seems to be working for various individuals is your solution located here:

I have so far had to modify many variables throughout the deployment of these scripts to even get it to work as far as it has... its a bit frustrating to be honest. However that being said I wasn't able to figure out a solution this time.

This is my setup... Additionally I have listed my changes to the scripts. And various things that are not mentioned during execution.

ADK 8.1

Windows 8.1 Pro

  1. As you need to run these scripts in a powershell terminal you need to set up your computer to be able to do so. By default windows is set to a restricting policy and therefore the scripts will not run without changing this policy to allow the script to do so. This is because the scripts are unsigned.

    Set-ExecutionPolicy RemoteSigned

  2. Depending on your environment and the version's of software downloaded by the script you need to change variables in the first script by the name of BuildWinPE.ps1

    [string]$ADKVersion = "8.1", [switch]$ForceADKInstall = $true

  3. Once that is finished the next issue is this should all be run under an administrator powershell.

  4. The $TFTPBlockSize variable did not seem to be passed correctly to the script bcdcreate.cmd and therefore needed to be set manually within the said script. Doing so however is tricky since the application creates that script when it runs. Which means you need to have the file opened/modified from a previous try and save it on top of the newly created file as soon as it appears.

    Changed: set TFTPBLOCKSIZE=%1 --> 8192

  5. If the script has already run and failed once you will need to clear out your old BCD configs manually as the command %BCDEDIT% -create {ramdiskoptions} -d "will fail (although likely harmlessly)

The following is where I am currently stuck at... How do I modify the current code, or if there is somewhere else I went wrong please let me know.

C:\winpe\bin>for /f "tokens=3" %%a in ('%BCDEDIT% -create -d "Windows PE" -appli cation osloader') do set GUID=%%a %%a の使い方が誤っています。 (The use of %%a is incorrect)

This is output from the set command showing what GUID was set to ... the meaning doesn't matter much its clearly set incorrectly which explains why my next commands failed.


C:\winpe\bin>%BCDEDIT% -set %GUID% systemroot \Windows 指定されたエントリを参照中にエラーが発生しました。 (Error occurred during reference to the specified entry.) 指定されたファイルが見つかりません。 (Specified file cannot be found (What file??))

I greatly appreciate the help in advance.