Optimize-Offline Guide - Windows Debloating Tool, Windows 1803, 1903, 19H2, 1909, 20H1 and LTSC 2019

Discussion in 'Windows 10' started by KedarWolf, Jul 30, 2019.

  1. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    Just to be clear, I *never* remove these four SystemApps:
    1. Microsoft.Windows.OOBENetworkCaptivePortal,
    2. Microsoft.Windows.OOBENetworkConnectionFlow.,
    3. Microsoft.Windows.NarratorQuickStart or
    4. NcsiUwpApp
    I'm probably being overly cautious and they might all be totally safe to remove. So keeping them may not solve your problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    I tested my Windows 11 In a VM and everything was fine, other then a terrible bug where if Windows 10 is your host O/S then the network doesn't work on the Windows 11 virtual machine. Does work as a live O/S though, I have a Macrium Reflect image of Windows 11 waiting for the AMD L3 cache bug fix update.
     
  3. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    #1404 KedarWolf, Oct 18, 2021
    Last edited: Oct 18, 2021
    (OP)
    The fix update is scheduled for Tuesday, the last update actually made it worse. :(

    Actually, it's supposed to be the fix I read, but L3 cache still messed up when I run AIDA64, sometimes it's decent, often messed up still. :(
     
  5. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    2,915
    12,497
    90
    Yes included these & now working as expected, thanks. More removals to do.
     
  6. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    I just added a section "One reason to keep the Windows store" to the "#992 - Guide for deciding what Windows (UWP) store apps & System Apps to keep"
    It may not be enough of a reason for you, but I've heard that recent Nvidea drivers have a UWP only control panel. Others will follow,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    #1407 KedarWolf, Oct 20, 2021
    Last edited: Oct 20, 2021
    (OP)
    On a W10UI 22000.282 ISO get one error.

    Code:
    Index     : 0
    Exception : Cannot find path 'HKEY_LOCAL_MACHINE\WIM_HKLM_SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserSto
                re\InboxApplications' because it does not exist.
    Category  : ObjectNotFound: (HKEY_LOCAL_MACH...boxApplications:String) [Get-ChildItem], ItemNotFoundException
    ErrorID   : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
    Target    : HKEY_LOCAL_MACHINE\WIM_HKLM_SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplicatio
                ns
    Command   : $InboxAppsPackages = Get-ChildItem -Path $RegKeyPath -Name | ForEach-Object -Process {
    Script    : D:\Optimize-Offline-master (6)\Optimize-Offline-master\Src\Public\Get-SystemPackages.ps1
    Line      : 15
    Column    : 23
    
    And I think the log is missing some things I watch the script remove, like Packages and SystemApps lists.

    Code:
    ***************************************************************************************************
    Running Module : Optimize-Offline 4.0.1.9
    Optimize Start : 10/20/2021 02:21:57 AM
    Identity Name  : Kedar
    Computer Name  : KEDARWOLF-PC
    ***************************************************************************************************
    
    2021-10-20T02:21:57 [INFO]: Supported Image Build: [22000]
    2021-10-20T02:22:00 [INFO]: Mounting Windows 11 Enterprise
    2021-10-20T02:22:37 [INFO]: Mounting Windows (TM) 10 Preinstallation Environment
    2021-10-20T02:22:43 [INFO]: Pre-Optimization Image Health State: [Healthy]
    2021-10-20T02:22:48 [INFO]: Removing Provisioned App Package: Microsoft.BingNews
    2021-10-20T02:22:50 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather
    2021-10-20T02:22:53 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp
    2021-10-20T02:22:55 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted
    2021-10-20T02:22:58 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub
    2021-10-20T02:23:00 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection
    2021-10-20T02:23:03 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes
    2021-10-20T02:23:06 [INFO]: Removing Provisioned App Package: Microsoft.Paint
    2021-10-20T02:23:08 [INFO]: Removing Provisioned App Package: Microsoft.People
    2021-10-20T02:23:11 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch
    2021-10-20T02:23:13 [INFO]: Removing Provisioned App Package: Microsoft.Todos
    2021-10-20T02:23:16 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos
    2021-10-20T02:23:18 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms
    2021-10-20T02:23:21 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator
    2021-10-20T02:23:23 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera
    2021-10-20T02:23:26 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps
    2021-10-20T02:23:29 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub
    2021-10-20T02:23:31 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps
    2021-10-20T02:23:34 [INFO]: Removing Provisioned App Package: Microsoft.WindowsNotepad
    2021-10-20T02:23:36 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder
    2021-10-20T02:23:39 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone
    2021-10-20T02:23:41 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic
    2021-10-20T02:23:44 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo
    2021-10-20T02:23:54 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps.
    2021-10-20T02:23:57 [INFO]: Importing Custom App Associations.
    2021-10-20T02:24:00 [INFO]: Removing Windows Capability: App.StepsRecorder
    2021-10-20T02:24:03 [INFO]: Removing Windows Capability: App.Support.QuickAssist
    2021-10-20T02:24:06 [INFO]: Removing Windows Capability: Hello.Face.20134
    2021-10-20T02:24:09 [INFO]: Removing Windows Capability: Language.Handwriting
    2021-10-20T02:24:12 [INFO]: Removing Windows Capability: Language.OCR
    2021-10-20T02:24:14 [INFO]: Removing Windows Capability: Language.Speech
    2021-10-20T02:24:17 [INFO]: Removing Windows Capability: MathRecognizer
    2021-10-20T02:24:20 [INFO]: Removing Windows Capability: Microsoft.Windows.Notepad.System
    2021-10-20T02:24:23 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmpciedhd63
    2021-10-20T02:24:25 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63a
    2021-10-20T02:24:28 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63al
    2021-10-20T02:24:31 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwbw02
    2021-10-20T02:24:35 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwew00
    2021-10-20T02:24:38 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwew01
    2021-10-20T02:24:41 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwlv64
    2021-10-20T02:24:45 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwns64
    2021-10-20T02:24:48 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwsw00
    2021-10-20T02:24:51 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw02
    2021-10-20T02:24:56 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw04
    2021-10-20T02:25:01 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw06
    2021-10-20T02:25:05 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw08
    2021-10-20T02:25:08 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Marvel.Mrvlpcie8897
    2021-10-20T02:25:12 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Athw8x
    2021-10-20T02:25:15 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Athwnx
    2021-10-20T02:25:20 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Qcamain10x64
    2021-10-20T02:25:23 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Ralink.Netr28x
    2021-10-20T02:25:27 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl8187se
    2021-10-20T02:25:31 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl8192se
    2021-10-20T02:25:34 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl819xp
    2021-10-20T02:25:37 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl85n64
    2021-10-20T02:25:41 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane
    2021-10-20T02:25:45 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane01
    2021-10-20T02:25:48 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane13
    2021-10-20T02:25:52 [INFO]: Removing Windows Capability: Microsoft.Windows.WordPad
    2021-10-20T02:25:56 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync
    2021-10-20T02:26:00 [INFO]: Removing Windows Capability: OpenSSH.Client
    2021-10-20T02:26:08 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root
    2021-10-20T02:26:13 [INFO]: Disabling Optional Feature: MSRDC-Infrastructure
    2021-10-20T02:26:17 [INFO]: Disabling Optional Feature: SmbDirect
    2021-10-20T02:26:20 [INFO]: Disabling Optional Feature: WorkFolders-Client
    2021-10-20T02:26:25 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux
    2021-10-20T02:26:30 [INFO]: Modifying windows service: AJRouter, Start: Disabled
    2021-10-20T02:26:31 [INFO]: Modifying windows service: ALG, Start: Disabled
    2021-10-20T02:26:32 [INFO]: Modifying windows service: AppVClient, Start: Disabled
    2021-10-20T02:26:33 [INFO]: Modifying windows service: BcastDVRUserService, Start: Disabled
    2021-10-20T02:26:34 [INFO]: Modifying windows service: CDPSvc, Start: Disabled
    2021-10-20T02:26:35 [INFO]: Modifying windows service: CertPropSvc, Start: Disabled
    2021-10-20T02:26:36 [INFO]: Modifying windows service: CscService, Start: Disabled
    2021-10-20T02:26:37 [INFO]: Modifying windows service: DevicePickerUserSvc, Start: Disabled
    2021-10-20T02:26:38 [INFO]: Modifying windows service: diagnosticshub.standardcollector.service, Start: Disabled
    2021-10-20T02:26:39 [INFO]: Modifying windows service: diagsvc, Start: Disabled
    2021-10-20T02:26:40 [INFO]: Modifying windows service: DiagTrack, Start: Disabled
    2021-10-20T02:26:41 [INFO]: Modifying windows service: dmwappushservice, Start: Disabled
    2021-10-20T02:26:42 [INFO]: Modifying windows service: DsSvc, Start: Disabled
    2021-10-20T02:26:43 [INFO]: Modifying windows service: edgeupdate, Start: Disabled
    2021-10-20T02:26:44 [INFO]: Modifying windows service: edgeupdatem, Start: Disabled
    2021-10-20T02:26:45 [INFO]: Modifying windows service: CaptureService, Start: Disabled
    2021-10-20T02:26:46 [INFO]: Modifying windows service: DoSvc, Start: Disabled
    2021-10-20T02:26:47 [INFO]: Modifying windows service: Fax, Start: Disabled
    2021-10-20T02:26:48 [INFO]: Modifying windows service: FrameServer, Start: Disabled
    2021-10-20T02:26:49 [INFO]: Modifying windows service: FrameServerMonitor, Start: Disabled
    2021-10-20T02:26:50 [INFO]: Modifying windows service: GraphicsPerfSvc, Start: Disabled
    2021-10-20T02:26:51 [INFO]: Modifying windows service: HvHost, Start: Disabled
    2021-10-20T02:26:52 [INFO]: Modifying windows service: icssvc, Start: Disabled
    2021-10-20T02:26:53 [INFO]: Modifying windows service: iphlpsvc, Start: Disabled
    2021-10-20T02:26:54 [INFO]: Modifying windows service: MapsBroker, Start: Disabled
    2021-10-20T02:26:55 [INFO]: Modifying windows service: MixedRealityOpenXRSvc, Start: Disabled
    2021-10-20T02:26:56 [INFO]: Modifying windows service: MessagingService, Start: Disabled
    2021-10-20T02:26:57 [INFO]: Modifying windows service: NcbService, Start: Disabled
    2021-10-20T02:26:58 [INFO]: Modifying windows service: PeerDistSvc, Start: Disabled
    2021-10-20T02:26:59 [INFO]: Modifying windows service: PcaSvc, Start: Disabled
    2021-10-20T02:27:00 [INFO]: Modifying windows service: PenService, Start: Disabled
    2021-10-20T02:27:01 [INFO]: Modifying windows service: perceptionsimulation, Start: Disabled
    2021-10-20T02:27:02 [INFO]: Modifying windows service: PhoneSvc, Start: Disabled
    2021-10-20T02:27:03 [INFO]: Modifying windows service: PimIndexMaintenanceSvc, Start: Disabled
    2021-10-20T02:27:04 [INFO]: Modifying windows service: RDPDR, Start: Disabled
    2021-10-20T02:27:05 [INFO]: Modifying windows service: RdpVideoMiniport, Start: Disabled
    2021-10-20T02:27:06 [INFO]: Modifying windows service: RemoteAccess, Start: Disabled
    2021-10-20T02:27:07 [INFO]: Modifying windows service: RemoteRegistry, Start: Disabled
    2021-10-20T02:27:08 [INFO]: Modifying windows service: RetailDemo, Start: Disabled
    2021-10-20T02:27:09 [INFO]: Modifying windows service: SCardSvr, Start: Disabled
    2021-10-20T02:27:10 [INFO]: Modifying windows service: ScDeviceEnum, Start: Disabled
    2021-10-20T02:27:11 [INFO]: Modifying windows service: scfilter, Start: Disabled
    2021-10-20T02:27:12 [INFO]: Modifying windows service: SCPolicySvc, Start: Disabled
    2021-10-20T02:27:13 [INFO]: Modifying windows service: SDRSVC, Start: Disabled
    2021-10-20T02:27:14 [INFO]: Modifying windows service: seclogon, Start: Disabled
    2021-10-20T02:27:15 [INFO]: Modifying windows service: SEMgrSvc, Start: Disabled
    2021-10-20T02:27:16 [INFO]: Modifying windows service: SensorDataService, Start: Disabled
    2021-10-20T02:27:17 [INFO]: Modifying windows service: SensorService, Start: Disabled
    2021-10-20T02:27:18 [INFO]: Modifying windows service: SensrSvc, Start: Disabled
    2021-10-20T02:27:19 [INFO]: Modifying windows service: SgrmBroker, Start: Disabled
    2021-10-20T02:27:20 [INFO]: Modifying windows service: SharedRealitySvc, Start: Disabled
    2021-10-20T02:27:21 [INFO]: Modifying windows service: SNMPTrap, Start: Disabled
    2021-10-20T02:27:22 [INFO]: Modifying windows service: SpatialGraphFilter, Start: Disabled
    2021-10-20T02:27:23 [INFO]: Modifying windows service: spectrum, Start: Disabled
    2021-10-20T02:27:24 [INFO]: Modifying windows service: StiSvc, Start: Disabled
    2021-10-20T02:27:25 [INFO]: Modifying windows service: SysMain, Start: Disabled
    2021-10-20T02:27:26 [INFO]: Modifying windows service: TabletInputService, Start: Disabled
    2021-10-20T02:27:27 [INFO]: Modifying windows service: TermService, Start: Disabled
    2021-10-20T02:27:28 [INFO]: Modifying windows service: upnphost, Start: Disabled
    2021-10-20T02:27:29 [INFO]: Modifying windows service: VacSvc, Start: Disabled
    2021-10-20T02:27:31 [INFO]: Modifying windows service: vmicguestinterface, Start: Disabled
    2021-10-20T02:27:32 [INFO]: Modifying windows service: vmicheartbeat, Start: Disabled
    2021-10-20T02:27:33 [INFO]: Modifying windows service: vmickvpexchange, Start: Disabled
    2021-10-20T02:27:34 [INFO]: Modifying windows service: vmicrdv, Start: Disabled
    2021-10-20T02:27:35 [INFO]: Modifying windows service: vmicshutdown, Start: Disabled
    2021-10-20T02:27:36 [INFO]: Modifying windows service: vmicvmsession, Start: Disabled
    2021-10-20T02:27:37 [INFO]: Modifying windows service: vmicvss, Start: Disabled
    2021-10-20T02:27:38 [INFO]: Modifying windows service: vmictimesync, Start: Disabled
    2021-10-20T02:27:39 [INFO]: Modifying windows service: WalletService, Start: Disabled
    2021-10-20T02:27:40 [INFO]: Modifying windows service: wanarp, Start: Disabled
    2021-10-20T02:27:41 [INFO]: Modifying windows service: wanarpv6, Start: Disabled
    2021-10-20T02:27:42 [INFO]: Modifying windows service: wbengine, Start: Disabled
    2021-10-20T02:27:43 [INFO]: Modifying windows service: Wecsvc, Start: Disabled
    2021-10-20T02:27:44 [INFO]: Modifying windows service: WFDSConMgrSvc, Start: Disabled
    2021-10-20T02:27:45 [INFO]: Modifying windows service: WiaRpc, Start: Disabled
    2021-10-20T02:27:46 [INFO]: Modifying windows service: wisvc, Start: Disabled
    2021-10-20T02:27:47 [INFO]: Modifying windows service: WinRM, Start: Disabled
    2021-10-20T02:27:48 [INFO]: Modifying windows service: WlanSvc, Start: Disabled
    2021-10-20T02:27:49 [INFO]: Modifying windows service: WwanSvc, Start: Disabled
    2021-10-20T02:27:50 [INFO]: Modifying windows service: WpcMonSvc, Start: Disabled
    2021-10-20T02:27:51 [INFO]: Modifying windows service: UmRdpService, Start: Disabled
    2021-10-20T02:27:52 [INFO]: Modifying windows service: UevAgentService, Start: Disabled
    2021-10-20T02:27:53 [INFO]: Modifying windows service: SSDPSRV, Start: Disabled
    2021-10-20T02:27:54 [INFO]: Modifying windows service: SharedAccess, Start: Disabled
    2021-10-20T02:27:55 [INFO]: Modifying windows service: RpcLocator, Start: Disabled
    2021-10-20T02:27:56 [INFO]: Modifying windows service: DusmSvc, Start: Disabled
    2021-10-20T02:27:57 [INFO]: Modifying windows service: shpamsvc, Start: Disabled
    2021-10-20T02:27:58 [INFO]: Modifying windows service: SmsRouter, Start: Disabled
    2021-10-20T02:27:59 [INFO]: Modifying windows service: WbioSrvc, Start: Disabled
    2021-10-20T02:28:00 [INFO]: Setting delivery optimization to bypass mode
    2021-10-20T02:28:03 [INFO]: Integrating the Win32 Calculator.
    2021-10-20T02:28:06 [INFO]: Applying Optimized Registry Settings.
    2021-10-20T02:28:15 [INFO]: Applying Setup Content.
    2021-10-20T02:28:18 [INFO]: Importing Registry Template: Additional Tweaks.reg
    2021-10-20T02:28:24 [INFO]: Applying Answer File.
    2021-10-20T02:28:26 [INFO]: Cannot perform a clean-up of the Component Store while there are pending installations.
    2021-10-20T02:28:26 [INFO]: Cleaning-up the Start Menu Layout.
    2021-10-20T02:28:30 [INFO]: Enabling dormant OneDrive fix
    2021-10-20T02:28:33 [INFO]: Post-Optimization Image Health State: [Healthy]
    2021-10-20T02:28:36 [INFO]: Saving and Dismounting Windows (TM) 10 Preinstallation Environment
    2021-10-20T02:28:52 [INFO]: Rebuilding and Exporting Windows (TM) 10 Preinstallation Environment
    2021-10-20T02:28:56 [INFO]: Saving and Dismounting Windows 11 Enterprise
    2021-10-20T02:30:01 [INFO]: Rebuilding and Exporting Windows 11 Enterprise using Solid compression.
    2021-10-20T02:35:10 [INFO]: Optimizing the Installation Media File Structure.
    2021-10-20T02:35:10 [INFO]: Creating a No-Prompt Bootable Windows Installation Media ISO.
    2021-10-20T02:35:13 [INFO]: Finalizing Optimizations.
    2021-10-20T02:35:13 [INFO]: Optimize-Offline completed in [13] minutes with [1] errors.
    
    ***************************************************************************************************
    Optimizations Finalized : 10/20/2021 02:35:13 AM
    ***************************************************************************************************
    
    Edit: It might be my Windows 11 is borderline unstable in what is stable in my BIOS with Windows 10. I ran the script again and no errors. :/

    Or, I could have had the File Manager open maybe.

    Yes, log is correct now.

    Code:
    ***************************************************************************************************
    Running Module : Optimize-Offline 4.0.1.9
    Optimize Start : 10/20/2021 02:48:01 AM
    Identity Name  : Kedar
    Computer Name  : KEDARWOLF-PC
    ***************************************************************************************************
    
    2021-10-20T02:48:01 [INFO]: Supported Image Build: [22000]
    2021-10-20T02:48:05 [INFO]: Mounting Windows 11 Enterprise
    2021-10-20T02:48:40 [INFO]: Mounting Windows (TM) 10 Preinstallation Environment
    2021-10-20T02:48:47 [INFO]: Pre-Optimization Image Health State: [Healthy]
    2021-10-20T02:48:51 [INFO]: Removing Provisioned App Package: Microsoft.BingNews
    2021-10-20T02:48:54 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather
    2021-10-20T02:48:57 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp
    2021-10-20T02:48:59 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted
    2021-10-20T02:49:02 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub
    2021-10-20T02:49:04 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection
    2021-10-20T02:49:07 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes
    2021-10-20T02:49:09 [INFO]: Removing Provisioned App Package: Microsoft.Paint
    2021-10-20T02:49:12 [INFO]: Removing Provisioned App Package: Microsoft.People
    2021-10-20T02:49:14 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch
    2021-10-20T02:49:17 [INFO]: Removing Provisioned App Package: Microsoft.Todos
    2021-10-20T02:49:19 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos
    2021-10-20T02:49:22 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms
    2021-10-20T02:49:24 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator
    2021-10-20T02:49:27 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera
    2021-10-20T02:49:30 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps
    2021-10-20T02:49:32 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub
    2021-10-20T02:49:35 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps
    2021-10-20T02:49:37 [INFO]: Removing Provisioned App Package: Microsoft.WindowsNotepad
    2021-10-20T02:49:40 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder
    2021-10-20T02:49:43 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone
    2021-10-20T02:49:45 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic
    2021-10-20T02:49:48 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo
    2021-10-20T02:49:57 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin
    2021-10-20T02:49:59 [INFO]: Removing System App: Microsoft.BioEnrollment
    2021-10-20T02:50:01 [INFO]: Removing System App: Microsoft.ECApp
    2021-10-20T02:50:03 [INFO]: Removing System App: Microsoft.LockApp
    2021-10-20T02:50:05 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog
    2021-10-20T02:50:07 [INFO]: Removing System App: Microsoft.Windows.FileExplorer
    2021-10-20T02:50:09 [INFO]: Removing System App: Microsoft.Windows.FilePicker
    2021-10-20T02:50:11 [INFO]: Removing System App: Microsoft.Windows.NarratorQuickStart
    2021-10-20T02:50:13 [INFO]: Removing System App: Microsoft.Windows.ParentalControls
    2021-10-20T02:50:15 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost
    2021-10-20T02:50:17 [INFO]: Removing System App: Microsoft.Windows.PinningConfirmationDialog
    2021-10-20T02:50:19 [INFO]: Removing System App: Microsoft.Windows.XGpuEjectDialog
    2021-10-20T02:50:21 [INFO]: Removing System App: Windows.CBSPreview
    2021-10-20T02:50:24 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps.
    2021-10-20T02:50:30 [INFO]: Removing Windows Biometric Capability: Hello.Face.20134~~~~0.0.1.0
    2021-10-20T02:50:34 [INFO]: Importing Custom App Associations.
    2021-10-20T02:50:37 [INFO]: Removing Windows Capability: App.StepsRecorder
    2021-10-20T02:50:40 [INFO]: Removing Windows Capability: App.Support.QuickAssist
    2021-10-20T02:50:43 [INFO]: Removing Windows Capability: Language.Handwriting
    2021-10-20T02:50:45 [INFO]: Removing Windows Capability: Language.OCR
    2021-10-20T02:50:48 [INFO]: Removing Windows Capability: Language.Speech
    2021-10-20T02:50:51 [INFO]: Removing Windows Capability: MathRecognizer
    2021-10-20T02:50:54 [INFO]: Removing Windows Capability: Microsoft.Windows.Notepad.System
    2021-10-20T02:50:56 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmpciedhd63
    2021-10-20T02:50:59 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63a
    2021-10-20T02:51:02 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63al
    2021-10-20T02:51:04 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwbw02
    2021-10-20T02:51:08 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwew00
    2021-10-20T02:51:11 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwew01
    2021-10-20T02:51:14 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwlv64
    2021-10-20T02:51:18 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwns64
    2021-10-20T02:51:21 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwsw00
    2021-10-20T02:51:24 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw02
    2021-10-20T02:51:30 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw04
    2021-10-20T02:51:34 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw06
    2021-10-20T02:51:38 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw08
    2021-10-20T02:51:41 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Marvel.Mrvlpcie8897
    2021-10-20T02:51:45 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Athw8x
    2021-10-20T02:51:49 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Athwnx
    2021-10-20T02:51:53 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Qcamain10x64
    2021-10-20T02:51:56 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Ralink.Netr28x
    2021-10-20T02:52:00 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl8187se
    2021-10-20T02:52:04 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl8192se
    2021-10-20T02:52:07 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl819xp
    2021-10-20T02:52:11 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl85n64
    2021-10-20T02:52:14 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane
    2021-10-20T02:52:18 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane01
    2021-10-20T02:52:21 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane13
    2021-10-20T02:52:25 [INFO]: Removing Windows Capability: Microsoft.Windows.WordPad
    2021-10-20T02:52:29 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync
    2021-10-20T02:52:33 [INFO]: Removing Windows Capability: OpenSSH.Client
    2021-10-20T02:52:41 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root
    2021-10-20T02:52:46 [INFO]: Disabling Optional Feature: MSRDC-Infrastructure
    2021-10-20T02:52:50 [INFO]: Disabling Optional Feature: SmbDirect
    2021-10-20T02:52:53 [INFO]: Disabling Optional Feature: WorkFolders-Client
    2021-10-20T02:52:58 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux
    2021-10-20T02:53:03 [INFO]: Modifying windows service: AJRouter, Start: Disabled
    2021-10-20T02:53:04 [INFO]: Modifying windows service: ALG, Start: Disabled
    2021-10-20T02:53:05 [INFO]: Modifying windows service: AppVClient, Start: Disabled
    2021-10-20T02:53:06 [INFO]: Modifying windows service: BcastDVRUserService, Start: Disabled
    2021-10-20T02:53:07 [INFO]: Modifying windows service: CDPSvc, Start: Disabled
    2021-10-20T02:53:08 [INFO]: Modifying windows service: CertPropSvc, Start: Disabled
    2021-10-20T02:53:09 [INFO]: Modifying windows service: CscService, Start: Disabled
    2021-10-20T02:53:10 [INFO]: Modifying windows service: DevicePickerUserSvc, Start: Disabled
    2021-10-20T02:53:11 [INFO]: Modifying windows service: diagnosticshub.standardcollector.service, Start: Disabled
    2021-10-20T02:53:12 [INFO]: Modifying windows service: diagsvc, Start: Disabled
    2021-10-20T02:53:13 [INFO]: Modifying windows service: DiagTrack, Start: Disabled
    2021-10-20T02:53:14 [INFO]: Modifying windows service: dmwappushservice, Start: Disabled
    2021-10-20T02:53:15 [INFO]: Modifying windows service: DsSvc, Start: Disabled
    2021-10-20T02:53:16 [INFO]: Modifying windows service: edgeupdate, Start: Disabled
    2021-10-20T02:53:17 [INFO]: Modifying windows service: edgeupdatem, Start: Disabled
    2021-10-20T02:53:18 [INFO]: Modifying windows service: CaptureService, Start: Disabled
    2021-10-20T02:53:19 [INFO]: Modifying windows service: DoSvc, Start: Disabled
    2021-10-20T02:53:20 [INFO]: Modifying windows service: Fax, Start: Disabled
    2021-10-20T02:53:21 [INFO]: Modifying windows service: FrameServer, Start: Disabled
    2021-10-20T02:53:22 [INFO]: Modifying windows service: FrameServerMonitor, Start: Disabled
    2021-10-20T02:53:23 [INFO]: Modifying windows service: GraphicsPerfSvc, Start: Disabled
    2021-10-20T02:53:24 [INFO]: Modifying windows service: HvHost, Start: Disabled
    2021-10-20T02:53:25 [INFO]: Modifying windows service: icssvc, Start: Disabled
    2021-10-20T02:53:26 [INFO]: Modifying windows service: iphlpsvc, Start: Disabled
    2021-10-20T02:53:27 [INFO]: Modifying windows service: MapsBroker, Start: Disabled
    2021-10-20T02:53:28 [INFO]: Modifying windows service: MixedRealityOpenXRSvc, Start: Disabled
    2021-10-20T02:53:29 [INFO]: Modifying windows service: MessagingService, Start: Disabled
    2021-10-20T02:53:30 [INFO]: Modifying windows service: NcbService, Start: Disabled
    2021-10-20T02:53:31 [INFO]: Modifying windows service: PeerDistSvc, Start: Disabled
    2021-10-20T02:53:32 [INFO]: Modifying windows service: PcaSvc, Start: Disabled
    2021-10-20T02:53:33 [INFO]: Modifying windows service: PenService, Start: Disabled
    2021-10-20T02:53:34 [INFO]: Modifying windows service: perceptionsimulation, Start: Disabled
    2021-10-20T02:53:35 [INFO]: Modifying windows service: PhoneSvc, Start: Disabled
    2021-10-20T02:53:36 [INFO]: Modifying windows service: PimIndexMaintenanceSvc, Start: Disabled
    2021-10-20T02:53:37 [INFO]: Modifying windows service: RDPDR, Start: Disabled
    2021-10-20T02:53:38 [INFO]: Modifying windows service: RdpVideoMiniport, Start: Disabled
    2021-10-20T02:53:39 [INFO]: Modifying windows service: RemoteAccess, Start: Disabled
    2021-10-20T02:53:40 [INFO]: Modifying windows service: RemoteRegistry, Start: Disabled
    2021-10-20T02:53:41 [INFO]: Modifying windows service: RetailDemo, Start: Disabled
    2021-10-20T02:53:42 [INFO]: Modifying windows service: SCardSvr, Start: Disabled
    2021-10-20T02:53:43 [INFO]: Modifying windows service: ScDeviceEnum, Start: Disabled
    2021-10-20T02:53:44 [INFO]: Modifying windows service: scfilter, Start: Disabled
    2021-10-20T02:53:45 [INFO]: Modifying windows service: SCPolicySvc, Start: Disabled
    2021-10-20T02:53:46 [INFO]: Modifying windows service: SDRSVC, Start: Disabled
    2021-10-20T02:53:47 [INFO]: Modifying windows service: seclogon, Start: Disabled
    2021-10-20T02:53:48 [INFO]: Modifying windows service: SEMgrSvc, Start: Disabled
    2021-10-20T02:53:49 [INFO]: Modifying windows service: SensorDataService, Start: Disabled
    2021-10-20T02:53:50 [INFO]: Modifying windows service: SensorService, Start: Disabled
    2021-10-20T02:53:51 [INFO]: Modifying windows service: SensrSvc, Start: Disabled
    2021-10-20T02:53:52 [INFO]: Modifying windows service: SgrmBroker, Start: Disabled
    2021-10-20T02:53:53 [INFO]: Modifying windows service: SharedRealitySvc, Start: Disabled
    2021-10-20T02:53:54 [INFO]: Modifying windows service: SNMPTrap, Start: Disabled
    2021-10-20T02:53:55 [INFO]: Modifying windows service: SpatialGraphFilter, Start: Disabled
    2021-10-20T02:53:56 [INFO]: Modifying windows service: spectrum, Start: Disabled
    2021-10-20T02:53:57 [INFO]: Modifying windows service: StiSvc, Start: Disabled
    2021-10-20T02:53:58 [INFO]: Modifying windows service: SysMain, Start: Disabled
    2021-10-20T02:53:59 [INFO]: Modifying windows service: TabletInputService, Start: Disabled
    2021-10-20T02:54:00 [INFO]: Modifying windows service: TermService, Start: Disabled
    2021-10-20T02:54:01 [INFO]: Modifying windows service: upnphost, Start: Disabled
    2021-10-20T02:54:02 [INFO]: Modifying windows service: VacSvc, Start: Disabled
    2021-10-20T02:54:03 [INFO]: Modifying windows service: vmicguestinterface, Start: Disabled
    2021-10-20T02:54:04 [INFO]: Modifying windows service: vmicheartbeat, Start: Disabled
    2021-10-20T02:54:05 [INFO]: Modifying windows service: vmickvpexchange, Start: Disabled
    2021-10-20T02:54:06 [INFO]: Modifying windows service: vmicrdv, Start: Disabled
    2021-10-20T02:54:07 [INFO]: Modifying windows service: vmicshutdown, Start: Disabled
    2021-10-20T02:54:08 [INFO]: Modifying windows service: vmicvmsession, Start: Disabled
    2021-10-20T02:54:09 [INFO]: Modifying windows service: vmicvss, Start: Disabled
    2021-10-20T02:54:10 [INFO]: Modifying windows service: vmictimesync, Start: Disabled
    2021-10-20T02:54:11 [INFO]: Modifying windows service: WalletService, Start: Disabled
    2021-10-20T02:54:12 [INFO]: Modifying windows service: wanarp, Start: Disabled
    2021-10-20T02:54:13 [INFO]: Modifying windows service: wanarpv6, Start: Disabled
    2021-10-20T02:54:14 [INFO]: Modifying windows service: wbengine, Start: Disabled
    2021-10-20T02:54:15 [INFO]: Modifying windows service: Wecsvc, Start: Disabled
    2021-10-20T02:54:17 [INFO]: Modifying windows service: WFDSConMgrSvc, Start: Disabled
    2021-10-20T02:54:18 [INFO]: Modifying windows service: WiaRpc, Start: Disabled
    2021-10-20T02:54:19 [INFO]: Modifying windows service: wisvc, Start: Disabled
    2021-10-20T02:54:20 [INFO]: Modifying windows service: WinRM, Start: Disabled
    2021-10-20T02:54:21 [INFO]: Modifying windows service: WlanSvc, Start: Disabled
    2021-10-20T02:54:22 [INFO]: Modifying windows service: WwanSvc, Start: Disabled
    2021-10-20T02:54:23 [INFO]: Modifying windows service: WpcMonSvc, Start: Disabled
    2021-10-20T02:54:24 [INFO]: Modifying windows service: UmRdpService, Start: Disabled
    2021-10-20T02:54:25 [INFO]: Modifying windows service: UevAgentService, Start: Disabled
    2021-10-20T02:54:26 [INFO]: Modifying windows service: SSDPSRV, Start: Disabled
    2021-10-20T02:54:27 [INFO]: Modifying windows service: SharedAccess, Start: Disabled
    2021-10-20T02:54:28 [INFO]: Modifying windows service: RpcLocator, Start: Disabled
    2021-10-20T02:54:29 [INFO]: Modifying windows service: DusmSvc, Start: Disabled
    2021-10-20T02:54:30 [INFO]: Modifying windows service: shpamsvc, Start: Disabled
    2021-10-20T02:54:31 [INFO]: Modifying windows service: SmsRouter, Start: Disabled
    2021-10-20T02:54:32 [INFO]: Modifying windows service: WbioSrvc, Start: Disabled
    2021-10-20T02:54:33 [INFO]: Setting delivery optimization to bypass mode
    2021-10-20T02:54:36 [INFO]: Integrating the Win32 Calculator.
    2021-10-20T02:54:39 [INFO]: Applying Optimized Registry Settings.
    2021-10-20T02:54:48 [INFO]: Applying Setup Content.
    2021-10-20T02:54:51 [INFO]: Importing Registry Template: Additional Tweaks.reg
    2021-10-20T02:54:57 [INFO]: Applying Answer File.
    2021-10-20T02:54:59 [INFO]: Cannot perform a clean-up of the Component Store while there are pending installations.
    2021-10-20T02:54:59 [INFO]: Cleaning-up the Start Menu Layout.
    2021-10-20T02:55:02 [INFO]: Enabling dormant OneDrive fix
    2021-10-20T02:55:06 [INFO]: Post-Optimization Image Health State: [Healthy]
    2021-10-20T02:55:09 [INFO]: Saving and Dismounting Windows (TM) 10 Preinstallation Environment
    2021-10-20T02:55:25 [INFO]: Rebuilding and Exporting Windows (TM) 10 Preinstallation Environment
    2021-10-20T02:55:28 [INFO]: Saving and Dismounting Windows 11 Enterprise
    2021-10-20T02:56:34 [INFO]: Rebuilding and Exporting Windows 11 Enterprise using Solid compression.
    2021-10-20T03:01:41 [INFO]: Optimizing the Installation Media File Structure.
    2021-10-20T03:01:41 [INFO]: Creating a No-Prompt Bootable Windows Installation Media ISO.
    2021-10-20T03:01:44 [INFO]: Finalizing Optimizations.
    2021-10-20T03:01:44 [INFO]: Optimize-Offline completed in [14] minutes with [0] errors.
    
    ***************************************************************************************************
    Optimizations Finalized : 10/20/2021 03:01:44 AM
    ***************************************************************************************************
    
     
  8. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    That's very strange. That's the registry that shows all the installed System Apps. So if that's missing?? No System Apps and a broken OS.
    My only suggestion is to try extracting the WIM from the ISO and applying OO to the WIM on it's own.
    I always take out the " "ISO": "No-Prompt"," line when I use a WIM, but maybe it isn't necessary to do that.
    Code:
      "SourcePath": "C:\\Build\\install.wim",
      .
    .
    .
      },
      "ComponentCleanup": true,
      "CompressionType": "Maximum",
      "SelectiveRegistry": {
    .
    .
    ,
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    See my edits to my post. I think the errors were caused as I may have had the File Manager open to the 0-0 folder.
     
  10. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
  12. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    Yes, after I added that suggestion, I saw that there is a way to work around the store for Nvidea, but then what about all the other DCH drivers that have UWP apps, like Realtek, etc.
    I'm seriously considering staying on Win 10 for a awhile, but if you're on Win 11 and want to get the most from all the new security, then you're going to want to go with DCH drivers.
    I await your further Store insights ....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    Thanks! I added your post to the "#992 - Guide for deciding what Windows (UWP) store apps & System Apps to keep"
    The topic is probably worthy of a thread. However, if you don't want to start (and maintain) a new thread, then, IMO, you wouldn't be "cluttering" the new thread that get's created after vNext LTSC IoT 2021 is officially released.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Dgk

    Dgk MDL Member

    Jan 18, 2020
    145
    52
    10
    Is there some 1 place I can bookmark and follow all updates and progress?
     
  15. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    2,915
    12,497
    90
    Running a win 10 with OO
    Just received this error:
    Code:
    Index     : 0
    Exception : Requested registry access is not allowed.
    Category  : PermissionDenied: (HKEY_LOCAL_MACH...rustedInstaller:String) [Set-ItemProperty], SecurityException
    ErrorID   : System.Security.SecurityException,Microsoft.PowerShell.Commands.SetItemPropertyCommand
    Target    : HKEY_LOCAL_MACHINE\WIM_HKLM_SYSTEM\ControlSet001\Services\TrustedInstaller
    Command   : Set-ItemProperty -LiteralPath $Key -Name $Name -Value $Value -Type $Type -Force
                -ErrorAction:$ErrorActionPreference
    Script    : C:\Users\MC\Desktop\Optimize-Offline-master\Src\Public\Set-KeyProperty.ps1
    Line      : 43
    Column    : 17
    Any pointers why this is occurring?
     
  18. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    No pointers.
    Here is a couple of possible work arounds (1) medium level and (2) smash-it-with-a-hammer
    Medium level:
    my suggestion above: https://forums.mydigitallife.net/th...20h1-and-ltsc-2019.80038/page-71#post-1698520
    Add the explorer kill with pause right-click. Start OO script. Kill explorer and leave it killed for the 8 to 15 min it takes for OO to finish. ​
    smash-it level:
    download and run once @BAU's RunAsTI https://forums.mydigitallife.net/threads/lean-and-mean-snippets-for-power-users.83479/
    This adds to your right-click "Send to" menu "RunAsTI.bat"
    Use this feature to right-click and launch the powershell.exe console as TI
    navigate to and run "Start-Optimize.ps1"​


     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    @gdeliana Any way to get the registry hives code integrated into the script from RunAsTi so using the AdvancedServices.json doesn't error out a few entries like "name": "TrkWks",

    Code:
    #:RunAsTI: #1 snippet to run as TI/System, with /high priority, /priv ownership, explorer and HKCU load
    set ^ #=& set "0=%~f0"& set 1=%*& powershell -nop -c iex(([io.file]::ReadAllText($env:0)-split':RunAsTI\:.*')[1])& exit/b
    $_CAN_PASTE_DIRECTLY_IN_POWERSHELL='^,^'; function RunAsTI ($cmd) { $id='RunAsTI'; $sid=((whoami /user)-split' ')[-1]; $code=@'
    $ti=(whoami /groups)-like"*1-16-16384*"; $DM=[AppDomain]::CurrentDomain."DefineDynamicAss`embly"(1,1)."DefineDynamicMod`ule"(1)
    $D=@(); 0..5|% {$D+=$DM."DefineT`ype"("M$_",1179913,[ValueType])}; $I=[int32];$P=$I.module.gettype("System.Int`Ptr"); $U=[uintptr]
    $D+=$U; 4..6|% {$D+=$D[$_]."MakeB`yRefType"()};$M=$I.module.gettype("System.Runtime.Interop`Services.Mar`shal");$Z=[uintptr]::size
    $S=[string]; $F="kernel","advapi","advapi",($S,$S,$I,$I,$I,$I,$I,$S,$D[7],$D[8]),($U,$S,$I,$I,$D[9]),($U,$S,$I,$I,[byte[]],$I)
    0..2|% {$9=$D[0]."DefinePInvokeMeth`od"(("CreateProcess","RegOpenKeyEx","RegSetValueEx")[$_],$F[$_]+'32',8214,1,$S,$F[$_+3],1,4)}
    $DF=0,($P,$I,$P),($I,$I,$I,$I,$P,$D[1]),($I,$S,$S,$S,$I,$I,$I,$I,$I,$I,$I,$I,[int16],[int16],$P,$P,$P,$P),($D[3],$P),($P,$P,$I,$I)
    1..5|% {$k=$_;$n=1;$AveYo=1; $DF[$_]|% {$9=$D[$k]."DefineFie`ld"('f'+$n++,$_,6)}}; $T=@(); 0..5|% {$T+=$D[$_]."CreateT`ype"()}
    0..5|% {nv "A$_" ([Activator]::CreateInstance($T[$_])) -force}; function F ($1,$2) {$T[0]."GetMeth`od"($1).invoke(0,$2)};
    if (!$ti) { $g=0; "TrustedInstaller","lsass"|% {if (!$g) {net1 start $_ 2>&1 >$null; $g=@(get-process -name $_ -ea 0|% {$_})[0]}}
     function M($1,$2,$3){$M."GetMeth`od"($1,[type[]]$2).invoke(0,$3)}; $H=@(); $Z,(4*$Z+16)|% {$H+=M "AllocHG`lobal" $I $_};
     M "WriteInt`Ptr" ($P,$P) ($H[0],$g.Handle); $A1.f1=131072;$A1.f2=$Z;$A1.f3=$H[0];$A2.f1=1;$A2.f2=1;$A2.f3=1;$A2.f4=1;$A2.f6=$A1
     $A3.f1=10*$Z+32;$A4.f1=$A3;$A4.f2=$H[1]; M "StructureTo`Ptr" ($D[2],$P,[boolean]) (($A2 -as $D[2]),$A4.f2,$false); $w=0x0E080600
     $out=@($null,"powershell -win 1 -nop -c iex `$env:A",0,0,0,$w,0,$null,($A4 -as $T[4]),($A5 -as $T[5])); F "CreateProcess" $out
    } else { $env:A=''; $PRIV=[uri].module.gettype("System.Diagnostics.Process")."GetMeth`ods"(42) |? {$_.Name -eq "SetPrivilege"}
     "SeSecurityPrivilege","SeTakeOwnershipPrivilege","SeBackupPrivilege","SeRestorePrivilege" |% {$PRIV.Invoke(0, @("$_",2))}
     $HKU=[uintptr][uint32]2147483651; $LNK=$HKU; $reg=@($HKU,"S-1-5-18",8,2,($LNK -as $D[9])); F "RegOpenKeyEx" $reg; $LNK=$reg[4]
     function SYM($1,$2){$b=[Text.Encoding]::Unicode.GetBytes("\Registry\User\$1");@($2,"SymbolicLinkValue",0,6,[byte[]]$b,$b.Length)}
     F "RegSetValueEx" (SYM $(($key-split'\\')[1]) $LNK); $EXP="HKLM:\Software\Classes\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}"
     $r="explorer"; if (!$cmd) {$cmd='C:\'}; $dir=test-path -lit ((($cmd -split '^("[^"]+")|^([^\s]+)') -ne'')[0].trim('"')) -type 1
     if (!$dir) {$r="start `"$id`" /high /w"}; sp $EXP RunAs '' -force; start cmd -args ("/q/x/d/r title $id && $r",$cmd) -wait -win 1
     do {sleep 7} while ((gwmi win32_process -filter 'name="explorer.exe"'|? {$_.getownersid().sid -eq "S-1-5-18"}))
     F "RegSetValueEx" (SYM ".Default" $LNK); sp $EXP RunAs "Interactive User" -force } # lean and mean snippet by AveYo, 2018-2021
    '@; $key="Registry::HKEY_USERS\$sid\Volatile Environment"; $a1="`$id='$id';`$key='$key';";$a2="`$cmd='$($cmd-replace"'","''")';`n"
    sp $key $id $($a1,$a2,$code) -type 7 -force; $arg="$a1 `$env:A=(gi `$key).getvalue(`$id)-join'';rp `$key `$id -force; iex `$env:A"
    $_PRESS_ENTER='^,^'; start powershell -args "-win 1 -nop -c $arg" -verb runas }; <#,#>  RunAsTI $env:1;  #:RunAsTI:
     
  20. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
    @KedarWolf
    Wouldn't attaching RunASTI to start optimize.bat achieve what you want?

    StartOptimize.bat
    Code:
    whoami|findstr /i /c:"nt authority\system" >nul || ( call :RunAsTI "%~f0" %* & exit/b )
    
    powershell .\Start-Optimize
    
    #:RunAsTI: #1 snippet to run as TI/System, with /high priority, /priv ownership, explorer and HKCU load
    set ^ #=& .................................................  etc