Win10XPE - Build Your Own Rescue Media [2]


  1. Posts : 190
    windows 7 /10
       #2001

    i find today how to fix temp & tmp in admin but it comme this new icon try ...
    Win10XPE - Build Your Own Rescue Media [2]-sshot-2.png
    something missing !!!
      My Computer


  2. Posts : 93
    Windows 11 Pro
       #2002

    thenicestguy24 said:
    Thanks ffrags. I did put that code in the place you told me to, changed the language to en-US as SWI2 suggested and added it to the PE. I still get a resolution of 800x600.

    doudiii am I doing something wrong here with your script as to why it isn't working?

    Also, if you want to manage bitlocker in PE. Go to your custom folder for the builder, navigate to windows/system32, create a new folder called BitLocker. Copy manage-bde.exe from your own system32 folder as well as the en-US folder from your own system32 folder, then build it, you will then be able to use the CLI commands to manage BitLocker drives after that.

    I'm not really sure why your resolution is so off and today's variety of video drivers and monitor resolutions makes it difficult to manage a comfortable resolution even in a production system let alone in a PE environment. However, I also had a resolution problem when I first delved into Win10XPE. My resolution problem was solved by editing the pecmd.ini file and changing the line that reads as either:

    DISP W1024 H768 B32|DISP W1366 H768 B32
    or as
    TEAM DISP W1024 H768 B32|DISP W1366 H768 B32
    and changing it to just
    DISP

    As far as I can figure out, DISP without other parameters lets the system select the best resolution.

    Also, you say you found the folders and files to add for Bitlocker management. To clarify your additions to the custom folder, you add the needed folder structure and needed files within those folders to this Win10XPE path:

    Win10XPE\Custom\x64\AdditionalFiles\Windows\System32

    If you are building a 32bit Win10XPE then change x64 to x86. Putting your extra needed folder and files up and down along this path will ensure that Win10XPE always picks them up with each rebuild. However, make sure you have the Add Your Custom Folder box checked.

    Win10XPE - Build Your Own Rescue Media [2]-screenshot-2024-04-10-141453.jpg
      My Computer


  3. Posts : 21
    10
       #2003

    ffrags said:
    I'm not really sure why your resolution is so off and today's variety of video drivers and monitor resolutions makes it difficult to manage a comfortable resolution even in a production system let alone in a PE environment. However, I also had a resolution problem when I first delved into Win10XPE. My resolution problem was solved by editing the pecmd.ini file and changing the line that reads as either:

    DISP W1024 H768 B32|DISP W1366 H768 B32
    or as
    TEAM DISP W1024 H768 B32|DISP W1366 H768 B32
    and changing it to just
    DISP

    As far as I can figure out, DISP without other parameters lets the system select the best resolution.
    Thanks! I tried that but still stuck at 800x600. I had this line in my pecmd.ini file: TEAM DISP W1024 H768 B32|DISP W1366 H768 B32

    Changed it to just DISP but didn't work.

    ffrags said:
    Also, you say you found the folders and files to add for Bitlocker management. To clarify your additions to the custom folder, you add the needed folder structure and needed files within those folders to this Win10XPE path:

    Win10XPE\Custom\x64\AdditionalFiles\Windows\System32

    If you are building a 32bit Win10XPE then change x64 to x86. Putting your extra needed folder and files up and down along this path will ensure that Win10XPE always picks them up with each rebuild. However, make sure you have the Add Your Custom Folder box checked.

    Win10XPE - Build Your Own Rescue Media [2]-screenshot-2024-04-10-141453.jpg

    Yes, my bad, I should have explained that in more detail. This is what my folder looks like:

    Win10XPE - Build Your Own Rescue Media [2]-screenshot-2024-04-10-164843.png

    To clarify since I wasn't very clear. I am building with Windows 11 as source, so take the manage-bde.exe file and the en-US folder (located at C:\Windows\System32\) from a working install of Windows 11 and copy it there in that path of the PE. If you are building with Windows 10 as source, then I would copy them from a working install of Windows 10. As ffrags mentioned, use the x64 path in PE if using 64 bit to build, x86 path in PE if using 32 bit to build.
      My Computer


  4. Posts : 7
    Win
       #2004

    Thanks @doudiii a lot! Sorry for not responding sooner!
      My Computer


  5. Posts : 93
    Windows 11 Pro
       #2005

    thenicestguy24 said:
    Thanks! I tried that but still stuck at 800x600. I had this line in my pecmd.ini file: TEAM DISP W1024 H768 B32|DISP W1366 H768 B32

    Changed it to just DISP but didn't work.
    If you have TEAM DISP W1024 H768 B32|DISP W1366 H768 B32 in your pecmd.ini but are still getting 800x600 maybe you don't have the correct video driver being installed for the hardware on which you are using Win10XPE. I say this is a possibility because per the info at this site Detailed Explanation of PECMD in WinPE----PECMD.INI File Configuration ( 1 ) as I pasted below you should be getting resolution of 1024x769 or the closest to that that your video card can do.

    [DISP]
    Format : DISP [W horizontal resolution H vertical resolution] [B color depth ] [F refresh rate] [T wait(ms)]
    Function : Set the display parameters.
    Parameters:
    ■ Separately specify screen parameters. If omitted, use the original settings.
    Example:
    ◆ DISP W1024 H768 B32 F70 T5000
    Remarks :
    ※ The first three sets of parameters can be used alone. For example, to set the refresh rate as 75 , you can use DISP F75 .

    Did you try putting a folder in this Win10XPE path: Win10XPE\Custom\x64\Drivers and have that folder contain the inf and sys files etc needed for your video card.
      My Computer


  6. Posts : 4,144
    Windows 3.1 to Windows 11
    Thread Starter
       #2006

    Winre\Windows\System32\manage-bde.exe
    Winre\Windows\System32\en-US\manage-bde.exe.mui

    Already included in WinRE

    Ans MS does not have it in a "Bitlocker" folder

    But if was to extract from Install.wim using additions
    \Windows\System32\manage-bde.exe
    \Windows\System32\??-??\manage-bde.exe.mui

    Although XPE already setup to extract any required mui & mun files
    So they are not usually listed
      My Computer


  7. Posts : 190
    windows 7 /10
       #2007

    Cipri said:
    Any cmd.exe shortcut is different, each one has his own properties.
    In pecmd.ini add /t:bf switch to cmd.exe
    LINK %Desktop%\Command Prompt,%WinDir%\System32\cmd.exe,/t:01
    thank you Cipri

    - - - Updated - - -

    doudiii said:
    i find today how to fix temp & tmp in admin but it comme this new icon try ...
    Win10XPE - Build Your Own Rescue Media [2]-sshot-2.png
    something missing !!!
    this icon is "Mouse Keys icon" , added this key and ok (its hide)
    Code:
    RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Accessibility\MouseKeys",Flags,31
    - - - Updated - - -

    set the TEMP environment variable
    folowing this:
    Code:
    https://superuser.com/questions/433454/how-do-i-set-the-temp-environment-variable-for-the-network-service-user
    https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/setx
    and modifying the order of "_SUB PreShell" to
    Code:
    _SUB PreShell
    
    // winpeshl.ini with [LaunchApps] wpeinit.exe
    EXEC %WinDir%\System32\winpeshl.exe
    
    // Install ImDisk Ramdisk in background (Uncommented if "Imdisk ramdisk" selected). Not to be changed, Replace //EXEC by //=EXEC
    EXEC @!%WinDir%\System32\StartImDIsk.exe 50 % B: RAMDisk "NTFS Compressed" "B:\Temp"
    // set the TEMP TMP environment variable
    TEAM EXEC =!setx.exe -m Temp B:\Temp|EXEC =!setx.exe -m Tmp B:\Temp
    TEAM REGI HKCU\Environment\TEMP=B:\Temp|REGI HKCU\Environment\TMP=B:\Temp
    TEAM REGI HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\TEMP=B:\Temp|REGI HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\TMP=B:\Temp
    //
    // Fix Screen resolution and Show Desktop. NoWait Hide
    EXEC !%WinDir%\System32\FixScreen.exe
    
    // Load and install oem* drivers in background before shell
    EXEC @!%WinDir%\System32\pnputil.exe /add-driver %WinDir%\inf\oem*.inf /install
    
    // LetterSwap
    //EXEC =!%WinDir%\System32\LetterSwap.exe /auto /bootdrive Y:\CDUsb.y /Log %Temp%\LetterSwap.log
    EXEC =!%WinDir%\System32\LetterSwap.exe /auto /SetLetter Y:\CDUsb.y /Log %Temp%\LetterSwap.log
    
    // Load Users Drivers from Y before shell in background (Uncommented By User Option)
    //EXEC @!%WinDir%\System32\pnputil.exe /add-driver Y:\Drivers\*.inf /subdirs
    
    // Load external Autorun.cmd or PecmdStartup.ini to run program, Install external drivers, keyboard,...
    IFEX Y:\XPEStartup.ini,LOAD Y:\XPEStartup.ini
    IFEX Y:\XPEStartup.cmd,EXEC Y:\XPEStartup.cmd
    
    INIT IU,3000
    
    _END
    Regshot 1.9.1 Work ok ( also dweb ...)
      My Computer


  8. Posts : 21
    10
       #2008

    ffrags said:
    If you have TEAM DISP W1024 H768 B32|DISP W1366 H768 B32 in your pecmd.ini but are still getting 800x600 maybe you don't have the correct video driver being installed for the hardware on which you are using Win10XPE. I say this is a possibility because per the info at this site Detailed Explanation of PECMD in WinPE----PECMD.INI File Configuration ( 1 ) as I pasted below you should be getting resolution of 1024x769 or the closest to that that your video card can do.

    [DISP]
    Format : DISP [W horizontal resolution H vertical resolution] [B color depth ] [F refresh rate] [T wait(ms)]
    Function : Set the display parameters.
    Parameters:
    ■ Separately specify screen parameters. If omitted, use the original settings.
    Example:
    ◆ DISP W1024 H768 B32 F70 T5000
    Remarks :
    ※ The first three sets of parameters can be used alone. For example, to set the refresh rate as 75 , you can use DISP F75 .

    Did you try putting a folder in this Win10XPE path: Win10XPE\Custom\x64\Drivers and have that folder contain the inf and sys files etc needed for your video card.
    Ya, I tried multiple things. It looks like this laptop isn't going to come out of 800x600 without injecting the driver. However, I was able to trim down the driver from being 1.5gb to 500mb. So that gives me a little bit of savings to the size of my PE iso.

    Thanks a bunch for the information

    Kyhi said:
    Winre\Windows\System32\manage-bde.exe
    Winre\Windows\System32\en-US\manage-bde.exe.mui

    Already included in WinRE

    Ans MS does not have it in a "Bitlocker" folder

    But if was to extract from Install.wim using additions
    \Windows\System32\manage-bde.exe
    \Windows\System32\??-??\manage-bde.exe.mui

    Although XPE already setup to extract any required mui & mun files
    So they are not usually listed
    That is strange, manage-bde wasn't working for me in PE when I tried it before adding the required files. But I have since stripped those files back out of my ISO and it is working, not sure why it wasn't before.

    Yes, MS doesn't have them in a "BitLocker" folder, my last 2 previous posts actually specified to grab those file from a working install located at "C:\Windows\System32".

    I suggested to put them in a BitLocker folder within the PE as to have a little bit of organization and sanity within your PE, especially for people who have a lot of custom files in the system32 folder of the PE, this is better organized rather than having a bunch of random file strewn about in the folder.
      My Computer


  9. Posts : 190
    windows 7 /10
       #2009

    MediaTransferProtocol
    this updated file for MediaTransferProtocol_XPE.Script
    Code:
    https://www.mediafire.com/file/ozxucj5fu554660/Mtp.7z/file
    Last edited by doudiii; 1 Week Ago at 14:05.
      My Computer


  10. Posts : 31
    Win11 insider
       #2010

    doudiii said:
    MediaTransferProtocol
    this updated file for MediaTransferProtocol_XPE.Script
    Code:
    https://www.mediafire.com/file/ozxucj5fu554660/mtp.7z/file
    The certificate registry is the same as the one I used in my MediaTransferProtocol_XPE.Script when I separated camera from mtp script and mtpHelper_x64.sys is also the same.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:01.
Find Us




Windows 10 Forums