Win10XPE - Build Your Own Rescue Media [2]


  1. Posts : 5
    win 10
       #1981

    hello where should I put this for my resolution


    ;22631.3371 +++
    ;25300 26085.1 ;26100.1needed
    \Windows\System32\DispBroker.dll
    ;
    ;26085.1 ;26100.1large desktop
    \Windows\System32\DispBroker.Desktop.dll
    ;\Windows\System32\fr-fr\DispBroker.Desktop.dll.mui
    ;
    ;mouse cursor
    ;25900;26063.1;26085.1;26100.1
    \Windows\System32\Microsoft.Internal.WarpPal.dll
    ;
    ;26085.1 ;26100.1desktops dpi +
    \Windows\System32\msclmd.dll
    \Windows\System32\mscms.dll
    ;\Windows\System32\fr-fr\mscms.dll.mui
    \Windows\System32\Windows.Graphics.dll
    ;
    ;25900;26085.1;26100.1
    \windows\SYSTEM32\Windows.UI.FileExplorer.WASDK.dll
    ;\Windows\System32\fr-FR\Windows.UI.FileExplorer.WASDK.dll.mui
    ;26063.1;26085.1 ;26100.1 ;admin
    \Windows\System32\windows.immersiveshell.serviceprovider.dll
    \Windows\System32\fr-fr\windows.immersiveshell.serviceprovider.dll.mui
    ;
      My Computer


  2. Posts : 7
    Win
       #1982

    doudiii said:
    @adritec
    you need to Mark Out the "LINK" command > //LINK as Kyhi said ( all LINK %Programs%\Accessibility to //LINK %Programs%\Accessibility)
    the only too that you cant is this too ( enen if you if it market out in precmd.ini)
    Code:
    LINK %Programs%\Accessibility\narrator,%WinDir%\System32\narrator.exe
    LINK %Programs%\System Tools\Command Prompt,%WinDir%\System32\cmd.exe
    because it come from "winre.wim"
    you need to add to this to any script to delete it
    Code:
    [Variables]
    %TargetAppDataRoaming%=%GTarget%\Users\Default\AppData\Roaming
    
    [Process]
    If,ExistFile,"%TargetAppDataRoaming%\Microsoft\Windows\Start Menu\Programs\Accessibility\Narrator.lnk",FileDeleteQ,"%TargetAppDataRoaming%\Microsoft\Windows\Start Menu\Programs\Accessibility\Narrator.lnk"
    If,ExistFile,"%TargetAppDataRoaming%\Microsoft\Windows\Start Menu\Programs\System Tools\Command Prompt.lnk",FileDeleteQ,"%TargetAppDataRoaming%\Microsoft\Windows\Start Menu\Programs\System Tools\Command Prompt.lnk"
    or add it to core script to be delete from the from the beginning ...
    Hello friend @doudiii, I came here to thank you, I inserted this script in "pecmd.ini" it didn't change anything, did I insert the script in the wrong place? I thank!
      My Computer


  3. Posts : 4,609
    several
       #1983

    did I insert the script in the wrong place?
    yes

    The code given by Doudii is to be added to one of the win10xpe scripts.

    ***********************************************************************************************

    The code in my previous post can be added to pecmd.ini

    post up your pecmd.ini
      My Computer


  4. Posts : 4,145
    Windows 3.1 to Windows 11
    Thread Starter
       #1984

    Code:
    // Pecmd launched from : RegWrite,HKLM,0x1,Tmp_System\Setup,CmdLine,"Pecmd.exe Main #$pWindir#$p\System32\Pecmd.ini"
    
    LOGS %WinDir%\System32\Pecmd.log
    
    CALL OSInit
    CALL PreShell
    CALL Shortcuts
    CALL PinTo
    CALL LoadShell
    CALL PostShell
    CALL AudioInit
    CALL NetInit
    TIPS  The Configuration is Finished.,,1,#1
    WAIT 3000
    EXIT
    
    ////////////////////////////////////////////////////////////////////////////////////////////////
    _SUB OSInit
    
    FIND $%USERNAME%=Administrator,REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-18\ProfileImagePath=X:\Users\Administrator
    
    // Load Display drivers (Uncommented if "Display drivers" selected). Not to be changed, Replace //EXEC by //=EXEC
    //EXEC =@!%WinDir%\System32\Drvload.exe %WinDir%\inf\basicdisplay.inf %WinDir%\inf\basicrender.inf %WinDir%\inf\c_display.inf %WinDir%\inf\display.inf %WinDir%\inf\displayoverride.inf
    
    TEAM DISP W1024 H768 B32|DISP W1366 H768 B32
    //TEAM DISP W1024 H768 B32|DISP W1280 720 B32|DISP W1280 H1024 B32|DISP W1366 H768 B32|DISP W1920 H1080 B32
    LOGO %WinDir%\web\wallpaper\Windows\img0.jpg
    // NumLock ON (changed to "NUMK 0" NumLock OFF if selected)
    NUMK 1
    TEXT Welcome, the Configuration is in Progress...#0xFFFFFF L59 T39 $20*
    // TIPS Welcome, the Configuration is in Progress...,,1,#1
    
    _END
    ////////////////////////////////////////////////////////////////////////////////////////////////
    _SUB PreShell
    
    // winpeshl.ini with [LaunchApps] wpeinit.exe
    EXEC %WinDir%\System32\winpeshl.exe
    
    // 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
    
    // 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
    
    // 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
    
    // 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"
    
    INIT IU,3000
    
    _END
    ////////////////////////////////////////////////////////////////////////////////////////////////
    _SUB Shortcuts
    
    LINK %Programs%\System Tools\WinXShell\Display Settings,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Resolution.zip,%ProgramFiles%\WinXShell\wxsUI\display.ico
    LINK %Programs%\System Tools\WinXShell\Shutdown,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Shutdown.zip\full.jcfg,%ProgramFiles%\WinXShell\wxsUI\Power.ico
    LINK %Programs%\System Tools\WinXShell\Wifi,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_WIFI.zip\main.jcfg -theme dark,%ProgramFiles%\WinXShell\wxsUI\wifi.ico
    LINK %Programs%\System Tools\WinXShell\Calendar,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Calendar.zip\calendar.jcfg,%ProgramFiles%\WinXShell\wxsUI\Calendar.ico
    LINK %Programs%\System Tools\WinXShell\SystemInfo,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_SystemInfo.zip,%ProgramFiles%\WinXShell\wxsUI\MyPC.ico
    LINK %Programs%\System Tools\WinXShell\Volume,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Volume.zip\main.jcfg,%ProgramFiles%\WinXShell\wxsUI\Volume.ico
    LINK %Programs%\System Tools\WinXShell\Settings,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Settings.zip,%ProgramFiles%\WinXShell\wxsUI\settings.ico
    //WinXShell.exe -ui -jcfg wxsUI\UI_Launcher.zip -theme dark
    
    LINK %Desktop%\Keyboard Layout,%WinDir%\System32\KeyboardLayout.cmd,,%WinDir%\System32\shell32.dll#173
    LINK %Programs%\Keyboard Layout,%WinDir%\System32\KeyboardLayout.cmd,,%WinDir%\System32\shell32.dll#173
    
    // Change Explorer Theme shortcuts (Uncommented if "Theme Shortcut" selected). Not to be changed, Replace //LINK by //=LINK
    //LINK %Desktop%\Change Explorer Theme,%WinDir%\system32\hiderun.exe,%WinDir%\System32\SwitchTheme.cmd,%WinDir%\System32\shell32.dll#174
    //LINK %Programs%\System Tools\Change Explorer Theme,%WinDir%\system32\hiderun.exe,%WinDir%\System32\SwitchTheme.cmd,%WinDir%\System32\shell32.dll#174
    
    LINK %Programs%\File Tasks\Explorer,%WinDir%\Explorer.exe
    LINK %Programs%\Explorer,%WinDir%\Explorer.exe
    LINK %Desktop%\Explorer,%WinDir%\Explorer.exe
    
    LINK %Programs%\Registry\Regedit,%WinDir%\regedit.exe
    
    LINK %Desktop%\Windows Installer,%SystemDrive%\setup.exe
    LINK %Programs%\System Tools\Windows Installer,%SystemDrive%\setup.exe
    
    LINK %Programs%\Administrative Tools\Computer Management,%WinDir%\System32\compmgmt.msc
    LINK %Programs%\Administrative Tools\Device Manager,%WinDir%\System32\devmgmt.msc
    LINK %Programs%\Administrative Tools\Disk Management,%WinDir%\System32\diskmgmt.msc
    LINK %Programs%\Administrative Tools\Services,%WinDir%\System32\services.msc
    
    LINK %Desktop%\Command Prompt,%WinDir%\System32\cmd.exe
    LINK %Programs%\System Tools\Command Prompt,%WinDir%\System32\cmd.exe
    
    LINK %Programs%\System Tools\Regedit,%WinDir%\regedit.exe
    
    // ImDisk Virtual Drive Management Shortcut (Uncommented if "Imdisk ramdisk" selected). Not to be changed, Replace //LINK by //=LINK
    //LINK %Programs%\System Tools\ImDisk Virtual Drive Management,%WinDir%\System32\imdisk.cpl,,%WinDir%\System32\imdisk.cpl#-1
    
    LINK %Programs%\Accessibility\Magnify,%WinDir%\System32\magnify.exe
    
    // OSK,mspaint,WordPad,PhotoViewer,SnippingTool shortcuts (Uncommented if "Windows Apps" selected). Not to be changed, Replace //LINK by //=LINK
    //LINK %Programs%\Accessibility\OSK,%WinDir%\System32\OSK.exe
    //LINK %Programs%\Accessories\MSPaint,%WinDir%\System32\mspaint.exe
    //LINK %Programs%\Accessories\WordPad,%ProgramFiles%\windows nt\accessories\WordPad.exe
    //LINK %Programs%\Accessories\PhotoViewer,%WinDir%\Web\Wallpaper\Windows\img0.jpg
    //LINK %Programs%\Accessories\SnippingTool,%WinDir%\System32\SnippingTool.exe
    
    LINK %Programs%\HW Info\MSinfo32,%WinDir%\System32\msinfo32.exe
    
    LINK %Desktop%\System Recovery,%SystemDrive%\sources\recovery\recenv.exe
    LINK %Programs%\System Tools\System Recovery,%SystemDrive%\sources\recovery\recenv.exe
    
    LINK %Programs%\Network\Enable Firewall,%WinDir%\System32\EnableFirewall.cmd,,%WinDir%\System32\shell32.dll#135
    LINK %Programs%\Network\Disable Firewall,%WinDir%\System32\DisableFirewall.cmd,,%WinDir%\System32\shell32.dll#135
    
    LINK %Programs%\Network\Initialize Network,%WinDir%\System32\InitializeNetwork.cmd,,%WinDir%\System32\shell32.dll#164
    
    _END
    ////////////////////////////////////////////////////////////////////////////////////////////////
    _SUB PinTo
    
    //PINT xxx.exe,StartMenu (does not work with SIB)
    // Examples here. It is done with PinUtil, see the section below
    //PINT %WinDir%\System32\cmd.exe,TaskBand
    //PINT %Programs%\Explorer.lnk,TaskBand
    //PINT %ProgramFiles%\Q-Dir\Q-Dir.exe,TaskBand
    
    _END
    ////////////////////////////////////////////////////////////////////////////////////////////////
    _SUB LoadShell
    
    //EXEC Y:\Programs\ProcessMonitor\Procmon64.exe
    
    // Enable ctfmon: Alternative User Input Text Input Processor (TIP) (Uncommented for Chinese and Korean windows source). Not to be changed, Replace //EXEC by //=EXEC
    //EXEC %WinDir%\System32\ctfmon.exe
    
    KILL explorer.exe
    SHEL %WinDir%\explorer.exe
    //SHEL %ProgramFiles%\WinXShell\WinXShell.exe -winpe
    
    _END
    ////////////////////////////////////////////////////////////////////////////////////////////////
    _SUB PostShell
    
    LOGO
    // EXEC  = Wait, @background, ! Hide. ex: EXEC =WaitNoHide.cmd, EXEC @!=WaitHide.cmd, EXEC NoWaitNoHide.cmd, EXEC @!NoWaitHide.cmd
    
    // Hide start menu Startup folders
    EXEC !%WinDir%\System32\attrib.exe +s +h "X:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup"
    EXEC !%WinDir%\System32\attrib.exe +s +h "X:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    
    // Remove desktop.ini
    IFEX %Desktop%\desktop.ini,FILE %Desktop%\desktop.ini
    IFEX X:\Users\Default\Desktop\desktop.ini,FILE X:\Users\Default\Desktop\desktop.ini
    IFEX X:\Users\Public\Desktop\desktop.ini,FILE X:\Users\Public\Desktop\desktop.ini
    IFEX X:\Users\Administrator\Desktop\desktop.ini,FILE X:\Users\Administrator\Desktop\desktop.ini
    
    // Load drivers
    DEVI %WinDir%\inf\battery.inf
    //DEVI %WinDir%\inf\usbport.inf
    
    // PinUtil must be Launched after Explorer. To bypass Windows restrictions, use symbolic links for programs on Y: removable drive
    IFEX B:\,IFEX Y:\Programs\,EXEC =@%WinDir%\System32\Cmd.exe /C Mklink /D B:\Programs Y:\Programs
    EXEC %WinDir%\System32\PinUtil.exe Config %Windir%\System32\Pecmd.ini
    
    // Show OSK TabletMode Button (Uncommented if "Show Touch Keyboard Button" enabled). Not to be changed, Replace //LINK by //=LINK
    //EXEC %WinDir%\System32\OskTray.exe
    
    _END
    ////////////////////////////////////////////////////////////////////////////////////////////////
    _SUB AudioInit
    
    //SERV -wait Audiosrv (audio service already started)
    // Install HDAudio driver sound cards
    DEVI %WinDir%\inf\hdaudio.inf
    WAIT 250
    
    // Adjust the volume (windows default 67%) ex: 65535*33% = 21626 (Uncommented if mute is not selected). Volume changed according to "System Volume At Startup" interface value
    //EXEC=!%WinDir%\System32\nircmd.exe setsysvolume 21626
    
    // Play Startup sound (Commented if mute is selected)
    EXEC @!%WinDir%\System32\mpg123.exe -q %SystemRoot%\Media\startup.mp3
    
    // Start NonVisual Desktop Access after Audio (Uncommented By NVDA Plugin)
    //EXEC @!%WinDir%\System32\NVDA_Startup.cmd
    
    _END
    ////////////////////////////////////////////////////////////////////////////////////////////////
    _SUB NetInit
    
    // Load Network drivers at startup
    EXEC =@!%WinDir%\System32\Drvload.exe %WinDir%\inf\athw8x.inf %WinDir%\inf\netathr10x.inf %WinDir%\inf\netathrx.inf %WinDir%\inf\netbc63a.inf %WinDir%\inf\netbc64.inf %WinDir%\inf\netrtwlane.inf %WinDir%\inf\netrtwlane_13.inf %WinDir%\inf\netrtwlanu.inf %WinDir%\inf\netwbw02.inf %WinDir%\inf\netwew00.inf %WinDir%\inf\netwew01.inf %WinDir%\inf\netwlan92de.inf %WinDir%\inf\netwlv64.inf %WinDir%\inf\netwns64.inf %WinDir%\inf\netwsw00.inf %WinDir%\inf\netwtw02.inf %WinDir%\inf\netwtw04.inf %WinDir%\inf\netwtw06.inf
    
    EXEC !=SetWG.exe WORKGROUP
    
    EXEC @!%WinDir%\System32\Net.exe Start Wlansvc
    EXEC @!%WinDir%\System32\Net.exe Start WinHttpAutoProxySvc
    
    // Launch PENetwork
    EXEC %ProgramFiles%\PENetwork\PENetwork.exe
    
    // Remote Desktop Server Connect (Uncommented By RDC Plugin)
    //EXEC @!%WinDir%\System32\mstsc.exe /v:
    
    _END
    ////////////////////////////////////////////////////////////////////////////////////////////////
    
    [PinUtil]
    StartMenu0=%WinDir%\Explorer.exe
    TaskBar0=%SystemRoot%\System32\cmd.exe
    TaskBar9=%SystemRoot%\Explorer.exe
      My Computer


  5. Posts : 7
    Win
       #1985

    SIW2 said:
    yes

    The code given by Doudii is to be added to one of the win10xpe scripts.

    ***********************************************************************************************

    The code in my previous post can be added to pecmd.ini

    post up your pecmd.ini
    Thanks @SIW2, excuse my ignorance, where are some of the win10xpe scripts...? How sad, friend!
      My Computer


  6. Posts : 4,609
    several
       #1986

    If you want links to the winxshell goodies and you dont like the system tools folder you could change

    Code:
    _SUB Shortcuts
    
    LINK %Programs%\System Tools\WinXShell\Display Settings,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Resolution.zip,%ProgramFiles%\WinXShell\wxsUI\display.ico
    LINK %Programs%\System Tools\WinXShell\Shutdown,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Shutdown.zip\full.jcfg,%ProgramFiles%\WinXShell\wxsUI\Power.ico
    LINK %Programs%\System Tools\WinXShell\Wifi,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_WIFI.zip\main.jcfg -theme dark,%ProgramFiles%\WinXShell\wxsUI\wifi.ico
    LINK %Programs%\System Tools\WinXShell\Calendar,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Calendar.zip\calendar.jcfg,%ProgramFiles%\WinXShell\wxsUI\Calendar.ico
    LINK %Programs%\System Tools\WinXShell\SystemInfo,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_SystemInfo.zip,%ProgramFiles%\WinXShell\wxsUI\MyPC.ico
    LINK %Programs%\System Tools\WinXShell\Volume,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Volume.zip\main.jcfg,%ProgramFiles%\WinXShell\wxsUI\Volume.ico
    LINK %Programs%\System Tools\WinXShell\Settings,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Settings.zip,%ProgramFiles%\WinXShell\wxsUI\settings.ico
    to

    Code:
    _SUB Shortcuts
    LINK %Programs%\WinXShell\Display Settings,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Resolution.zip,%ProgramFiles%\WinXShell\wxsUI\display.ico
    LINK %Programs%\WinXShell\Shutdown,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Shutdown.zip\full.jcfg,%ProgramFiles%\WinXShell\wxsUI\Power.ico
    LINK %Programs%\WinXShell\Wifi,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_WIFI.zip\main.jcfg -theme dark,%ProgramFiles%\WinXShell\wxsUI\wifi.ico
    LINK %Programs%\WinXShell\Calendar,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Calendar.zip\calendar.jcfg,%ProgramFiles%\WinXShell\wxsUI\Calendar.ico
    LINK %Programs%\WinXShell\SystemInfo,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_SystemInfo.zip,%ProgramFiles%\WinXShell\wxsUI\MyPC.ico
    LINK %Programs%\WinXShell\Volume,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Volume.zip\main.jcfg,%ProgramFiles%\WinXShell\wxsUI\Volume.ico
    LINK %Programs%\WinXShell\Settings,%ProgramFiles%\WinXShell\WinXShell.exe,-ui -jcfg wxsUI\UI_Settings.zip,%ProgramFiles%\WinXShell\wxsUI\settings.ico




    I would suggest removing stuff you dont want at the end of the postshell subroutine

    _SUB PostShell

    // Remove desktop.ini
    IFEX %Desktop%\desktop.ini,FILE %Desktop%\desktop.ini
    IFEX X:\Users\Default\Desktop\desktop.ini,FILE X:\Users\Default\Desktop\desktop.ini
    IFEX X:\Users\Public\Desktop\desktop.ini,FILE X:\Users\Public\Desktop\desktop.ini
    IFEX X:\Users\Administrator\Desktop\desktop.ini,FILE X:\Users\Administrator\Desktop\desktop.ini

    // Load drivers
    DEVI %WinDir%\inf\battery.inf
    //DEVI %WinDir%\inf\usbport.inf

    // PinUtil must be Launched after Explorer. To bypass Windows restrictions, use symbolic links for programs on Y: removable drive
    IFEX B:\,IFEX Y:\Programs\,EXEC =@%WinDir%\System32\Cmd.exe /C Mklink /D B:\Programs Y:\Programs
    EXEC %WinDir%\System32\PinUtil.exe Config %Windir%\System32\Pecmd.ini

    // Show OSK TabletMode Button (Uncommented if "Show Touch Keyboard Button" enabled). Not to be changed, Replace //LINK by //=LINK
    //EXEC %WinDir%\System32\OskTray.exe

    //file commands here for example
    file "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup"
    file "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Accessories"
    file "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools"
    file "%AppData%\Microsoft\Windows\Start Menu\Programs\Startup"
    file "%AppData%\Microsoft\Windows\Start Menu\Programs\Accessories"
    file "%AppData%\Microsoft\Windows\Start Menu\Programs\System Tools"
    file "%AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools"

    _END

    IFEX not really necessary for the file commands. If the subject doesnt exist, pecmd will just continue to next command, it doesnt stop or throw error messages.
    Last edited by SIW2; 4 Weeks Ago at 18:40.
      My Computer


  7. Posts : 34
    Windows 11
       #1987

    Script files are in Projects folder.
    Copy and paste the following text in a delnarrator.script
    and put it in \Win10XPE\Projects\MoPlugins folder

    Code:
    
    [Main]
    Title=Delete Narrator
    Type=XPEplugin
    Author=oscar
    Description=Delete Narrator files
    Credits=
    Version=1
    Level=6
    Selected=True
    Mandatory=False
    NoWarning=False
    Date=2023.03.24
    History001=
    
    
    [Process]
    Echo,"Processing %ScriptTitle%..."
    
    If,ExistFile,"%GTarget%\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility\Narrator.lnk",FileDeleteQ,"%GTarget%\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility\Narrator.lnk"
    If,ExistFile,%GTarget_Sys%\narrator.exe,FileDeleteQ,%GTarget_Sys%\narrator.exe
    If,ExistFile,%GTarget_Sys%\NarratorControlTemplates.xml,FileDeleteQ,%GTarget_Sys%\NarratorControlTemplates.xml
      My Computer


  8. Posts : 7
    Win
       #1988

    Thank you very much @Cipri and @SIW2, I managed to remove the folders, as seen in the screenshot!

    How do I create a subfolder folder, is this possible?

    Win10XPE - Build Your Own Rescue Media [2]-screenshot_1.png
      My Computer


  9. Posts : 4,609
    several
       #1989

    what subfolder and where ?
      My Computer


  10. Posts : 190
    windows 7 /10
       #1990

    adritec said:
    ...
    How do I create a subfolder folder, is this possible?
    ...
    Do you mean this !!
    Win10XPE - Build Your Own Rescue Media [2]-f.png

    - - - Updated - - -

    I changed the text color of cmd
    Code:
    RegWrite,HKLM,0x1,Tmp_Default\Console\#$p#$pStartup,DelegationConsole,{00000000-0000-0000-0000-000000000000}
    RegWrite,HKLM,0x1,Tmp_Default\Console\#$p#$pStartup,DelegationTerminal,{00000000-0000-0000-0000-000000000000}
    RegWrite,HKLM,0x4,Tmp_Default\Console\#$pSystemRoot#$p_system32_cmd.exe,CursorType,0
    RegWrite,HKLM,0x4,Tmp_Default\Console\#$pSystemRoot#$p_system32_cmd.exe,InterceptCopyPaste,0
    RegWrite,HKLM,0x1,Tmp_Default\Console\#$pSystemRoot#$p_system32_cmd.exe,FaceName,Consolas
    RegWrite,HKLM,0x4,Tmp_Default\Console\#$pSystemRoot#$p_system32_cmd.exe,FontFamily,54
    RegWrite,HKLM,0x4,Tmp_Default\Console\#$pSystemRoot#$p_system32_cmd.exe,FontWeight,400
    RegWrite,HKLM,0x4,Tmp_Default\Console\#$pSystemRoot#$p_system32_cmd.exe,ScreenBufferSize,19660920
    //text color
    RegWrite,HKLM,0x4,Tmp_Default\Console\#$pSystemRoot#$p_system32_cmd.exe,ScreenColors,1
    Win10XPE - Build Your Own Rescue Media [2]-3.png

    1 IF i use " Window+R" cmd its ok
    2 IF i use the desktop shortcut , not ok , will not take the color
    any ideas are welcome ...
      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 00:28.
Find Us




Windows 10 Forums