Quantcast
Channel: Setup Deployment forum
Viewing all articles
Browse latest Browse all 2818

Error 5: Access is Denied While using OSCDIMG to create Winpe x86 ISO with Deployment Tools Command Prompt

$
0
0

Technician computer is Windows 7 HP x64.

Running latest version of WAIK.

Goal: To make a Winpe disc for each processor architecture (AMD64, x86, IA64) with an included Gimage.exe using this code for the default startnet.cmd file found in system32 directory of winpe boot.wim

:

wpeinit
if /i %PROCESSOR_ARCHITECTURE%==amd64 (
cd x64
start gimagex.exe
)
if /i %PROCESSOR_ARCHITECTURE%==ia64 (
cd x64
start gimagex.exe
)
if /i %PROCESSOR_ARCHITECTURE%==x86 (
cd x86
start gimagex.exe
)

These are the commands I have processed for the x86 variant:

copype x86 c:\pe\x86\

Dism /mount-wim /wimfile:C:\pe\x86\winpe.wim /index:1 /mountdir:C:\mount

**It is at this point I copy over my x86 folder, x64 folder, and overwrite the startnet.cmd file.

dism /unmount-wim /mountdir:C:\mount /commit

oscdimg -n bc:\pe\x86\etfsboot.com c:\pe\x86\iso c:\pe\x86.iso

^^It is at this command I receive this error:

ERROR: Could not delete existing file "c:\pe\x86\iso"
Error 5: Access is denied.

Please note that all commands before were hand-typed, no copy or pasting from any directory or .chm

One thread referred to some Application Management service, but I can report that there is no such service installed in my machine.

Thank You!

UPDATE:

I copied the winpe.wim file from the x86 root directory into the iso directory and renamed it to boot.wim Now, if I copy the contents to a flash drive and put it into a client computer, it boots to the PE perfectly, script and all.

However, when trying to use the oscdimg command, I do get an .iso successfully, but when I burn it, I don't know what to do in the way of boot options, and if I keep defaults (imgburn) it results in an un-bootable dvd. 

Suggestions are greatly appreciated.


Viewing all articles
Browse latest Browse all 2818

Trending Articles