Questions tagged [winpe]

Windows Preinstallation Environment (Windows PE) 2.0 is a minimal Win32 operating system with limited services, built on the Windows Vista kernel. It is used to prepare a computer for Windows installation, to copy disk images from a network file server, and to initiate Windows Setup.

Windows Preinstallation Environment (Windows PE) 2.0 is a minimal Win32 operating system with limited services, built on the Windows Vista kernel. It is used to prepare a computer for Windows installation, to copy disk images from a network file server, and to initiate Windows Setup.

Windows PE is not designed to be the primary operating system on a computer, but is instead used as a standalone preinstallation environment and as an integral component of other setup and recovery technologies, such as Setup for Windows Vista, Windows Deployment Services (Windows DS), the Systems Management Server (SMS) Operating System (OS) Deployment Feature Pack, and the Windows Recovery Environment (Windows RE).

131 questions
2
votes
1 answer

Painting Issue when selecting file using CFileDialog

I am facing an issue using CFileDialog in my code. When I call the CFileDialog from ModalDialog, to select a file. My whole ModalDialog background gets erased once the current view is exited and reopened. Procedure followed: Main Dialog Opened…
Arun kumar
  • 41
  • 4
2
votes
2 answers

Splitting String into Array Errors

Trying to write a script that will be run in WinPE, that essentially gets the IP address of the localhost and chooses an action based on the IP range. In Windows, the script runs flawlessly. However, in WinPE, I'm getting the following…
jparnell8839
  • 530
  • 1
  • 11
  • 26
2
votes
1 answer

How can I use `wmic` in a Windows PE script?

I'm trying to determine the computer model (e.g., "Optiplex 9010") in a batch script running in the context of Windows PE 3.1. When running Windows proper, I can do this using wmic csproduct or wmic bios but neither of these return any data when…
Harry Johnston
  • 35,639
  • 6
  • 68
  • 158
2
votes
3 answers

Accessing USB drive form WinPE prompt

I am trying to install Windows 8 on virtual box using a bootable WinPE DVD. The image file (.wim) is on the USB stick. But when I boot from DVD, I cannot find the USB drive. I need to execute the command d:\imagex.exe /apply e:\imageC_20150528.wim 1…
Pallavi
  • 119
  • 1
  • 2
  • 10
2
votes
1 answer

DISM throws error with HRESULT=80310000

Got an error out of DISM when attempting to capture Surface Pro 3's existing image. I boot to WinPE via USB flash drive fine. I attached a second USB drive (Drive E:) AFTER WinPE boot, and check that I can navigate to it. I can, so I return back to…
Redgum
  • 388
  • 5
  • 14
2
votes
3 answers

Batch file to find USB drive and change drive letter

I'm trying to automate our imaging process. We have multiple computer models with different images all stored on one USB drive with WinPE. I have gotten as far as creating a script that with give me options using Choice to select which computer I…
Chris
  • 33
  • 1
  • 4
2
votes
1 answer

WinPE - Adding Custom Application to boot.wim or iso

Does anybody know how to add a customer exe into a ISO or boot.wim file with WinPE? Please provide sample statements on how to add file and then launch it from WinPE Command Line. Thanks
RPS
  • 103
  • 2
  • 2
  • 6
2
votes
2 answers

Cannot fully delete ProgramData from Windows 8 installation within WinPE

I have a script that runs in WinPE that takes a system drive with Windows installed and deletes everything off of the drive (keeping the filesystem intact). When dealing with a Windows XP/Vista/7 installation it functions properly. attrib -S -A -H…
Alyssa Haroldsen
  • 3,652
  • 1
  • 20
  • 35
2
votes
1 answer

How can I mask/hide password entry in WinPE using batch or vbscript?

I need password entry to not be displayed while typing. It can either stay blank or use * characters. It can be in either batch or vbscript and it will only be used while booted into WinPE. In older versions, we used this…
fix
  • 1,425
  • 16
  • 27
2
votes
3 answers

Starting a .NET Application From CD?

we're trying to figure out a way to build a .NET application that can run entirely self contained from a CD. Basically user pops in a CD, boots to an operating system on the CD and a barebones .NET Framework starts up with the application. We've…
tekiegreg
  • 1,667
  • 6
  • 25
  • 41
2
votes
1 answer

Detecting AC Power connection in WinPE?

I'm trying to determine if a laptop is connected to AC power. The OS Im running under is WinPE. My app is written in native C++. WMI queries using Win32_Battery are not supported and the GetSystemPowerStatus API always returns '1' for ACLineStatus…
1
vote
1 answer

MFC: Display output of a process asynchronously(concurrently) while process is in execution in a win32 text area (mfc application)

I want to develop an application in MFC which could start a lengthy console process and give its output concurrently on a text area of 32bit windows application. I used pipes, but it display the output only after the process has terminated. I tried…
Konark
  • 31
  • 2
1
vote
2 answers

Using DISM Api to Capture Image Programatically within Windows PE Environment

I've been going through the windows documentation for the Dism API with the goal of writing an exe in C++ (or whatever language can accomplish this) that can create a WIM image while running in Windows PE. I found a .NET Wrapper for the Dism API…
sbeisner
  • 23
  • 5
1
vote
1 answer

How can I get an application to run in WinPE?

Trying to get a simple Windows Forms vb.net app to run in WInPE. Nothing compilated just read a text file, prompt the user for some input, create a text file (batch file) then run the batch file. I have added the .net package to the Wim set…
Rockb
  • 21
  • 3
1
vote
1 answer

How can I programmatically determine Windows PE version?

My application needs to determine whether it is running on Windows PE. Neither the deprecated GetVersionEx function nor the preferred alternative Version Helper APIs offer any indication whether I am operating on WinPE, only indicating the version…
Daniel Widdis
  • 8,424
  • 13
  • 41
  • 63
1
2
3
8 9