Win10XPE - Build Your Own Rescue Media [2]


  1. Posts : 61
    windows 10
       #1531

    Hello everybody!

    I'm trying to add a custom Cursor but it's not working

    before this ATT 02/01 worked
      My Computer


  2. Posts : 190
    windows 7 /10
       #1532

    keketoco00 said:
    Hello everybody!
    I'm trying to add a custom Cursor but it's not working
    before this ATT 02/01 worked
    you need to add your custom Cursor & respective reg key ( i tested without modifying the theme & still work)
    Win10XPE - Build Your Own Rescue Media [2]-cur-1.png
      My Computer


  3. Posts : 61
    windows 10
       #1533

    doudiii said:
    you need to add your custom Cursor & respective reg key ( i tested without modifying the theme & still work)
    Win10XPE - Build Your Own Rescue Media [2]-cur-1.png
    Thanks! It worked here!

    Could someone help me on how I find webcam drivers to add in Win1Xpe?

    - - - Updated - - -

    Could someone tell me how do I change the path of external programs? I already tried through pecmd.ini and it didn't work, I changed all the folders Yrograms and B:Programs
      My Computer


  4. Posts : 24
    Windows 11 x64
       #1534

    Does anyone know if it is possible to install a driver, for example nvidia driver during boot and not by injecting the driver in wim? I tried installing it but still it requires me to reboot to be able to use it. Thanks in adavance
      My Computer


  5. Posts : 61
    windows 10
       #1535

    digilizard said:
    Does anyone know if it is possible to install a driver, for example nvidia driver during boot and not by injecting the driver in wim? I tried installing it but still it requires me to reboot to be able to use it. Thanks in adavance
    You can use SDI and call it in pecmd.ini, then before entering winpe it will install, I did it with a network drive and it worked
      My Computer


  6. Posts : 4,614
    several
       #1536

    digilizard said:
    Does anyone know if it is possible to install a driver, for example nvidia driver during boot and not by injecting the driver in wim? I tried installing it but still it requires me to reboot to be able to use it. Thanks in adavance
    used to do it with 7 winpe to get aero working.

    If I recall correctly, the sequence was :
    load the driver then switch to admin account and then relaunch explorer as system.

    https://learn.microsoft.com/en-us/sy...wnloads/psexec

    pecmd code:

    exec !=drvload.exe X:\Windows\System32\DriverStore\FileRepository\atiilhag.inf_x86_neutral_1d882551ede2c65b\atiilhag.in f
    exec !=drvload.exe X:\Windows\System32\DriverStore\FileRepository\igdlh.inf_x86_neutral_2d255f193700d214\igdlh.inf
    exec !=drvload.exe X:\Windows\System32\DriverStore\FileRepository\nv_lh.inf_x86_neutral_bbe628dbdd6fce25\nv_LH.inf

    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList\Guest=#0
    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon=1
    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName=LsaSetupDomain\Administrator
    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword=""
    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ForceAutoLogon=1
    REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\StartMenuLogOff=0
    EXEC !=net start gpsvc
    EXEC !=%SystemRoot%\System32\tsdiscon.exe
    WAIT 10000
    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ForceAutoLogon=0

    exec !=%windir%\system32\tskill explorer
    exec !%windir%\system32\psexec -i -d -s explorer
    EXEC !=psexec -i -d -s PECMD.EXE EXEC @%SystemRoot%\explorer.exe %SystemRoot%\Resources\Themes\aero.theme
    Last edited by SIW2; 01 Jul 2023 at 07:44.
      My Computer


  7. Posts : 24
    Windows 11 x64
       #1537

    SIW2 said:
    used to do it with 7 winpe to get aero working.

    If I recall correctly, the sequence was :
    load the driver then switch to admin account and then relaunch explorer as system.

    https://learn.microsoft.com/en-us/sy...wnloads/psexec

    pecmd code:

    exec !=drvload.exe X:\Windows\System32\DriverStore\FileRepository\atiilhag.inf_x86_neutral_1d882551ede2c65b\atiilhag.in f
    exec !=drvload.exe X:\Windows\System32\DriverStore\FileRepository\igdlh.inf_x86_neutral_2d255f193700d214\igdlh.inf
    exec !=drvload.exe X:\Windows\System32\DriverStore\FileRepository\nv_lh.inf_x86_neutral_bbe628dbdd6fce25\nv_LH.inf

    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList\Guest=#0
    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon=1
    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName=LsaSetupDomain\Administrator
    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword=""
    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ForceAutoLogon=1
    REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\StartMenuLogOff=0
    EXEC !=net start gpsvc
    EXEC !=%SystemRoot%\System32\tsdiscon.exe
    WAIT 10000
    REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ForceAutoLogon=0

    exec !=%windir%\system32\tskill explorer
    exec !%windir%\system32\psexec -i -d -s explorer
    EXEC !=psexec -i -d -s PECMD.EXE EXEC @%SystemRoot%\explorer.exe %SystemRoot%\Resources\Themes\aero.theme
    Thanks SIW2, I will try the steps, hopefully works for me too :)



    @keketoco00

    I tried it the earliest possible but it just got installed, but I cannot use without reboot, btw most other components including the network card is working even if you install it after completely booting winpe, at least it works for me.


    --- Update ---

    @SIW2

    Your solution work like a charm, I didn't know it is that easy. I can now intercept the process during boot and install any driver I want, even from SDI, and just works

    Thanks again SIW2
    Last edited by digilizard; 01 Jul 2023 at 21:20.
      My Computer


  8. Posts : 4,614
    several
       #1538

      My Computer


  9. Posts : 4,614
    several
       #1539

    keketoco00 said:
    - - - Updated - - -

    Could someone tell me how do I change the path of external programs? I already tried through pecmd.ini and it didn't work, I changed all the folders Yrograms and B:Programs
    Can you be more specific?

    I usually put the programs on the usb stick and get pecmd to find the usb stick and link them to the desktop/start menu.

    It can look for any tag file, for example a text file on the root of the usb stick called peusby.ini

    Win10XPE - Build Your Own Rescue Media [2]-peusby-location.jpg


    then in pecmd.ini

    Code:
    envi fDrive=
    FORX \PEUSBY.ini,&&fd,0,TEAM# FDRV &&fp=%&fd%# FIND~ $X:=%&fp%, ~envi fDrive=%fDrive%%&fp%
    FIND# $X=X%fDrive%,! LOAD %fdrive%\PEUSBY.ini
    peusby.ini can contain the commands to link the programs something like this:
    Code:
    ////////////////////////////////////////////////////////////
    _SUB USBlnk
      //the folder on my usb containing the programs is called Uprograms
         ENVI PECMN=%CurDir%\Uprograms
         LINK %Desktop%\diskgenius,%PECMN%\DiskGenius\diskgenius.exe
         LINK %Desktop%\Firefox,%PECMN%\mozilla firefox\firefox.exe
         LINK %Desktop%\Backupper,%PECMN%\AomeiBackupper\Backupper.exe
         LINK %Desktop%\PartAssist,%PECMN%\AomeiPartAssist\PartAssist.exe
         LINK %Desktop%\USB-Dism++,%PECMN%\Dism++\Dism++x64.exe
    
         LINK %StartMenu%\DataRecovery\Recuva,%PECMN%\Recuva\Recuva.exe
         LINK %StartMenu%\ShadowCopyView\Shadowcopyview,%PECMN%\ShadowCopyView-x64\shadowcopyview.exe
         LINK %StartMenu%\Install\WinNTSetup,%PECMN%\WinNTSetup\WinNTSetup_x64.exe
         LINK %StartMenu%\Registry\Regscanner64,%PECMN%\RegWork\Regscanner64.exe
    
    // next command merges any .reg files you have put on the usb stick in a folder called regfiles. 
    
         FORX %PECMN%\regfiles\*.reg,&&rf,0,EXEC regedit /s %&rf%
    
    // runs part assist install.bat that is in usb stick  Uprograms\AomeiPartAssist folder 
           
         EXEC !"%PECMN%\AomeiPartAssist\install.bat"
    
         ENVI PECMN=
        
    _END
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
    CALL USBlnk
    any extra programs can be added to the usb stick and add a line to the .ini to link them.
    Last edited by SIW2; 01 Jul 2023 at 22:20.
      My Computer


  10. Posts : 61
    windows 10
       #1540

    SIW2 said:
    Can you be more specific?

    I usually put the programs on the usb stick and get pecmd to find the usb stick and link them to the desktop/start menu.

    It can look for any tag file, for example a text file on the root of the usb stick called peusby.ini


    then in pecmd.ini

    Code:
    envi fDrive=
    FORX \PEUSBY.ini,&&fd,0,TEAM# FDRV &&fp=%&fd%# FIND~ $X:=%&fp%, ~envi fDrive=%fDrive%%&fp%
    FIND# $X=X%fDrive%,! LOAD %fdrive%\PEUSBY.ini
    peusby.ini can contain the commands to link the programs something like this:
    Code:
    ////////////////////////////////////////////////////////////
    _SUB USBlnk
         ENVI PECMN=%CurDir%\Uprograms
         LINK %Desktop%\diskgenius,%PECMN%\DiskGenius\diskgenius.exe
         LINK %Desktop%\Firefox,%PECMN%\mozilla firefox\firefox.exe
         LINK %Desktop%\Backupper,%PECMN%\AomeiBackupper\Backupper.exe
         LINK %Desktop%\PartAssist,%PECMN%\AomeiPartAssist\PartAssist.exe
         LINK %Desktop%\USB-Dism++,%PECMN%\Dism++\Dism++x64.exe
    
         LINK %StartMenu%\DataRecovery\Recuva,%PECMN%\Recuva\Recuva.exe
         LINK %StartMenu%\ShadowCopyView\Shadowcopyview,%PECMN%\ShadowCopyView-x64\shadowcopyview.exe
         LINK %StartMenu%\Install\WinNTSetup,%PECMN%\WinNTSetup\WinNTSetup_x64.exe
         LINK %StartMenu%\Registry\Regscanner64,%PECMN%\RegWork\Regscanner64.exe
    
    // next command merges any .reg files you have put on the usb stick in a folder called regfiles. 
    
         FORX %PECMN%\regfiles\*.reg,&&rf,0,EXEC regedit /s %&rf%
    
    // runs part assist install.bat that is in usb stick  Uprograms\AomeiPartAssist folder 
           
         EXEC !"%PECMN%\AomeiPartAssist\install.bat"
    
         ENVI PECMN=
        
    _END
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
    CALL USBlnk
    any extra programs can be added to the usb stick and add a line to the .ini to link them.
    that was it, I ended up solving it with the FORX command

    It's just that in pecmd.ini it shows the Programs folder on disk Y:\ and B:\, so when I changed the location of the Programs folder, the programs did not appear, even if I changed the location in Pecmd ini
    I used the FORX command and got it
    Ty
      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:42.
Find Us




Windows 10 Forums