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
1
vote
1 answer

How to get an object of Devcon output using PowerShell (winpe)?

I would like to select an object from Devcon.exe output. PCI\VEN_8086&DEV_2822&SUBSYS_1790103C&REV_04\3&11583659&0&FA Name: Intel(R) Chipset SATA/PCIe RST Premium Controller Driver node #0: Inf file is C:\Windows\INF\iastorav.inf Inf…
Cheries
  • 834
  • 1
  • 13
  • 32
1
vote
1 answer

Who bears the responsibility for dealing with client ephemeral port reuse after power loss?

We have clients that, on startup, map an smb share on a FreeNAS server. We've noticed that after a power loss, they sometimes have an issue connecting to the smb share. After a bit of debugging and packet capture, it appears the problem is that the…
aggieNick02
  • 2,557
  • 2
  • 23
  • 36
1
vote
0 answers

Tracking DISM progress using C# - Working in Windows 10 but not in WinPE

I am using C# to start DISM process to capture/apply image and to track the progress. When I run the code on Windows 10 the progress is being updated normally but when the code I run the code inside WinPE environment the progress is not updated but…
brigate011
  • 23
  • 6
1
vote
1 answer

How to add volume shadow copy service to WINPE

I am making self WinPE using Windows AIK (Windows Automated Installation Kit). I added many packages using DSIM command. But I can not add Volume Shadow Copy service. I found same issue here and here But I don't understand what to do. Please help…
Jack Lee
  • 363
  • 5
  • 18
1
vote
2 answers

How does Windows pass arguments to a program? (And is there a SetCommandLine function?)

How does the entry point receive arguments from the command line? I looked through a disassembly of one and found it calls __getmainargs to obtain the arguments. Is there a way to "__setmainargs"? I know that CreateProcess does this already but I…
小太郎
  • 5,510
  • 6
  • 37
  • 48
1
vote
1 answer

Mount-WindowsImage Issue

I decided to rewrite my USB boot media to a PowerShell script. When mounting I use the following Mount-WindowsImage -ImagePath X:\DEV.wim -Index 1 -Path "C:\windows" The .WIM is on a separate partition on the boot USB. When called, PowerShell can't…
Seth
  • 23
  • 3
1
vote
2 answers

Limit user input in Windows batch script with predefined symbols only

I've written the following windows batch script for WinPE to make some tasks easier: @ECHO OFF CLS :MENU SETLOCAL SET QUIT=FALSE SET /P INPUTCHOICES=Type 1, 2, 3 or 4 and press ENTER: CALL :EXECUTECHOICES %INPUTCHOICES% ENDLOCAL GOTO…
YKKY
  • 605
  • 1
  • 6
  • 18
1
vote
1 answer

Run Wix MSI installation in WinpE

I created an MSI using Wix. The msi contains a driver INF and Windows DPinst.exe. Now I am trying to run the msi in Winpe to update the driver. How can I create an msi that can run in Winpe environment using Wix? I used Wix V3
user4024419
1
vote
1 answer

Moving files in batch corrupts directories on running in Windows PE

On an industrial PC there is a recovery partition running Windows PE. On this WPE environment there are some batch scripts running that offer the user some choices. E.g. "Press 1 for this, press 2 for that", etc. I'm currently working on an…
Exa
  • 4,020
  • 7
  • 43
  • 60
1
vote
1 answer

How do I add "Press any key to boot from usb" when installing Windows from a flash drive? (Grub4dos question / how to remove a bootloader)

I've been struggling with this problem for a while now and finially decided to ask for help. Let me first explain what the main purpose of the app is: to provide the a very easy to use way of backing up files, after which I format the drive and…
Vincent
  • 47
  • 2
  • 5
1
vote
1 answer

Windows Volume without a Partition

Background: I'm working on a powershell script to automate installation from a USB stick via WinPE. Because the target systems have several drives, each possibly having a couple partitions, Windows quickly runs out of drive letters. Part of my…
Drew McGowen
  • 11,471
  • 1
  • 31
  • 57
1
vote
1 answer

How do I get the offline Windows drive letter from a Windows PE?

If I use GetWindowsDirectoryfrom my online Windows, I can get the directory where the OS is installed like C:\Windows. If I use the same function from a Windows PE, I would get like X:\Windows(like the screenshot), witch means the Windows directory…
Sergio Calderon
  • 837
  • 1
  • 13
  • 32
1
vote
1 answer

How to invoke NtSetInformationFile (w/ FILE_LINK_INFORMATION) in c#

The following is an attempt to reproduce the CreateHardLink functionality as described here. The reason I even need to do this is because this is the only way that I know I'll have the necessary permissions (this code is running in .Net, in WinPE…
Clay
  • 4,999
  • 1
  • 28
  • 45
1
vote
1 answer

To checkout the bitness of WIM file programmatically

I want to know how we can check the bitness (32 or 64 bit) of any WIM file programmatically? I am using VC++ for development, i did enough googling but didn't get anything much about WIM file bitness.
1
vote
0 answers

How does the CanBeSystemVolume function work during unattended installation

In my case I'd like to modify the "unattend.xml" file to install OS to the disk which supports installation. Setting fixed disk index implicates setting up boot options which is not the prefered when you change disks very often and you actually…
Doro
  • 755
  • 8
  • 25
1 2
3
8 9