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
8
votes
6 answers

How do I detect if WinPE(4) has booted from a UEFI or BIOS?

I am looking for a way to reliably detect when I boot into WinPE 4 (powershell) (or WinPE 3 (vbs) as an alternative), have I booted from a UEFI or BIOS System? (without running a third party exe as I am in a restricted environment) This…
RogerWilco
  • 81
  • 1
  • 2
7
votes
1 answer

BCD entry for winpe only launches Preparing Automatic Repair

I'm attempting to reboot a computer into a flash drive media containing Windows PE, but every time it only launches Preparing Automatic Repair. Here is my powershell that generates the new bcd entry: $drive = (get-location).Drive.Name + ":" $output…
GrumpyCrouton
  • 8,486
  • 7
  • 32
  • 71
5
votes
4 answers

How can I detect the drive letter of a booted USB drive from script?

I'm launching WinPE 2 from a bootable UFD, and I need to detect the drive letter in order to tell ImageX where to find the WIM. However, depending on the machine I'm imaging, there are different mounted drives. I need a way to consistently mount…
Doug Chase
  • 701
  • 3
  • 8
  • 15
4
votes
1 answer

Unable to import QtGui, QtWidgets modules of PyQt5/PySide in WinPE

I'm developing a tool to be used in WinPE and have been facing an issue while using PySide2/PyQt5 in WinPE environment. While importing QtGui, it says ImportError: DLL load failed while importing QtGui: The specified module could not be found. But…
RohitM
  • 41
  • 1
3
votes
3 answers

What programming languages/platforms can you use for GUI in a WinPE environment?

I'm starting work on a project that must be delivered in WinPE. I will likely be able to use WinPE 3.0. I'm also aware of Bart's PE and VistaPE, but I think I'm going to stick with WinPE. I need x64 support and the full range of storage drivers. I…
Jared Oberhaus
  • 14,547
  • 4
  • 56
  • 55
3
votes
3 answers

Get MAC and DHCP server from ipconfig

I am writing a script in a WinPE environment where I want to find my PXE server and send it my MAC address to retrieve provisioning scripts. Here's what I have to deal with: The server will have multiple network adapters. Only one is connected to…
Christoffer Reijer
  • 1,925
  • 2
  • 21
  • 40
3
votes
1 answer

cleanup-wim says successful in batch, but wim is still orphaned

This is my first post here, but have been using stackoverflow for a while for any of the problems I run in to. (TL;DR: my batch script says that it successfully unmounts the WIM file, but when I query for WIMs, orphaned files are still around until…
zer0
  • 31
  • 1
  • 4
3
votes
1 answer

diskpart select by disk label

I need to select a disk in WinPE using DISKPART by label. I found this but I think it's outdated: @Echo %dbg%Off :: :: Find External drive and set it active :: Lists Disk Information using Diskpart :: SetLocal EnableDelayedExpansion :: Type the frst…
3
votes
1 answer

.NET GUI Not Displaying in WinPE

I have created a utility in C#, something basic. I have it running during an SCCM task sequence deployment. One of the first things it does (during the form load event) is query ldap. That portion of code is in a try block and an exception is caught…
MDMoore313
  • 3,233
  • 1
  • 23
  • 38
2
votes
3 answers

Do QT based GUI applications work in Windows PE?

I tried running a QT C++ GUI sample in WinPE. It should just open an empty window. It complains about missing d3d11.dll and dxgi.dll. QT tries to use OpenGL, if there is no suitable driver, it uses DirectX with ANGLE. I tried removing the DirectX…
Szabi2k
  • 21
  • 2
2
votes
2 answers

Use Oshi Java library to get hardware and operating system information for Windows PE

I am unable to run my Java app on Windows PE. Basically, my application gets data of Hhardware plus operating system information. I am using Oshi Java library for this purpose, but Oshi uses the JNA library, which is continuously crashing. Note: My…
Umair Iqbal
  • 1,405
  • 2
  • 14
  • 24
2
votes
1 answer

Running under WinPE or WinRE

I am using Windows 10 64 bit, when I choose show in explorer in my project I got this error, " This application only runs under WinPE or WinRE " How can I browse my projects?
AmmAr Yasser
  • 321
  • 2
  • 17
2
votes
1 answer

UserPrincipal.FindByIdentity fails in C# under 64bit WinPE

I am writing a 64-bit C# Windows forms application that will run under Windows PE 10 64-bit to pull the Display Name from Active Directory. I have to use 64-bit because the PCs I am running this on will only boot UEFI so I cannot boot into a 32-bit…
2
votes
2 answers

No output from C++ program

First of all, sorry if this is in the wrong category, as I am not sure what the cause of this problem is. For educational purposes I have created a small "Hello World" application #include int main() { std::cout << "Hello World\n"; …
ddybing
  • 77
  • 1
  • 8
2
votes
2 answers

Windows PE WinForm app not exectued

I'm working to make a Windows image (.wim) of Windows PE OS integrating MS .NET Framework in order to run a WinForm app operating as wizard for computer installation. I have the exact same probleme as this post, on app execution from command line,…
Naweap
  • 105
  • 8
1
2 3
8 9