Change value of "IsInbox" attribute in StateRepository-Machine.srd in Windows 10 version 1809

Discussion in 'Windows 10' started by 100055, Dec 15, 2018.

  1. 100055

    100055 MDL Novice

    Dec 15, 2018
    3
    5
    0
    #1 100055, Dec 15, 2018
    Last edited: Dec 16, 2018
  2. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    896
    474
    30
    good find with the trigger
     
  3. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    5,992
    7,261
    180
    :thinking:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. jorj1as

    jorj1as MDL Novice

    Dec 4, 2020
    1
    0
    0
    Woooow. So amazing. If it is not by people like you world is lost. Im trying to delete all windows processes, like Cortana and Search because i have some smell they are sending data to the databases of Microsoft. I don't like such a shadowing. The names of the updates are very "ambiguous" and in fact they can do whatever.

    Once again. Thanks!! I was struggling to edit that file.
     
  5. BAU

    BAU MDL Addicted

    Feb 10, 2009
    906
    1,877
    30
    a more convenient method is to fake EOL for the respective app - see example of how to uninstall new edge + built-in edge:
    https://forums.mydigitallife.net/threads/microsoft-edge.79237/page-137#post-1630576
    Code:
    $AveYo = 'Paste in a PowerShell (Admin) window to uninstall Edge'  ;  function prompt {}
    
    ## RIP Edge legacy app first
    $edges = (get-appxpackage -allusers *MicrosoftEdge*).PackageFullName
    $bloat = (get-appxprovisionedpackage -online |? {$_.PackageName -like '*MicrosoftEdge*'}).PackageName
    $users = ([wmi]"win32_userAccount.Domain='$env:userdomain',Name='$env:username'").SID,'S-1-5-18'
    $eoled = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife'
    foreach ($legacy in $bloat) {
      foreach ($user in $users) { ni "$eoled\$user\$legacy" –Force -ea 0 >$null }
      powershell -nop -c remove-appxprovisionedpackage -online -packagename $legacy 2>&1 >$null
    }
    foreach ($legacy in $edges) {
      foreach ($user in $users) { ni "$eoled\$user\$legacy" –Force -ea 0 >$null }
      powershell -nop -c remove-appxpackage -allusers -package $legacy 2>&1 >$null
    }
     
  6. Javanicus

    Javanicus MDL Junior Member

    Mar 16, 2015
    69
    47
    0
    Thanks you very very much...

    Finally...

    Code:
    function prompt {}
    $users = ([wmi]"win32_userAccount.Domain='$env:userdomain',Name='$env:username'").SID,'S-1-5-18'
    $eoled = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife'
    
    $SysApps = @("c5e2524a-ea46-4f67-841f-6a9465d9d515", "1527c705-839a-4832-9118-54d4Bd6a0c89", "E2A4F912-2574-4A75-9BB0-0D023378592B",
    "F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE", "AADBrokerPlugin", "BioEnrollment",
    "ECApp", "LockApp", "MicrosoftEdge", "Win32WebViewHost", "AppRep.ChxApp",
    "AssignedAccessLockApp", "CallingShellApp", "CapturePicker", "ContentDeliveryManager",
    "NarratorQuickStart", "ParentalControls", "PeopleExperienceHost", "NcsiUwpApp", "XboxGameCallableUI",
    "XgpuEjectDialog", "CbsPreview") | ForEach-Object -Process {
        $edges = (get-appxpackage -allusers *$_*).PackageFullName
        $bloat = (get-appxprovisionedpackage -online |? {$_.PackageName -like '*$_*'}).PackageName
        foreach ($legacy in $bloat) {
          foreach ($user in $users) { ni "$eoled\$user\$legacy" –Force -ea 0 >$null }
          powershell -nop -c remove-appxprovisionedpackage -online -packagename $legacy 2>&1 >$null
        }
        foreach ($legacy in $edges) {
          foreach ($user in $users) { ni "$eoled\$user\$legacy" –Force -ea 0 >$null }
          powershell -nop -c remove-appxpackage -allusers -package $legacy 2>&1 >$null
        }
    }

    PackageFullName : Microsoft.AAD.BrokerPlugin_1000.19041.423.0_neutral_neutral_cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.Windows.OOBENetworkConnectionFlow_10.0.19041.423_neutral__cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : MicrosoftWindows.UndockedDevKit_10.0.19041.423_neutral_neutral_cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.Windows.OOBENetworkCaptivePortal_10.0.19041.423_neutral__cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.Windows.StartMenuExperienceHost_10.0.19041.610_neutral_neutral_cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.Windows.ShellExperienceHost_10.0.19041.610_neutral_neutral_cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : windows.immersivecontrolpanel_10.0.2.1000_neutral_neutral_cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.Windows.Search_1.14.0.19041_neutral_neutral_cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.VCLibs.140.00_14.0.27323.0_x64__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.AccountsControl_10.0.19041.423_neutral__cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.AsyncTextService_10.0.19041.423_neutral__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.CredDialogHost_10.0.19041.423_neutral__cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.Windows.PinningConfirmationDialog_1000.19041.423.0_neutral__cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.Windows.SecureAssessmentBrowser_10.0.19041.423_neutral_neutral_cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Microsoft.Windows.SecHealthUI_10.0.19041.423_neutral__cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}

    PackageFullName : Windows.PrintDialog_6.2.1.0_neutral_neutral_cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-3065019051-2401082735-1261013966-500 [Administrator]: Installed}
     
  7. BAU

    BAU MDL Addicted

    Feb 10, 2009
    906
    1,877
    30
    #7 BAU, Dec 5, 2020
    Last edited: Dec 5, 2020
    I'm not sure that will work, and since all errors are suppressed, it's hard to see it.

    Will see about a clearer version
     
  8. xinso

    xinso MDL Guru

    Mar 5, 2009
    5,554
    7,776
    180
  9. Javanicus

    Javanicus MDL Junior Member

    Mar 16, 2015
    69
    47
    0
  10. Javanicus

    Javanicus MDL Junior Member

    Mar 16, 2015
    69
    47
    0
    #10 Javanicus, Dec 5, 2020
    Last edited: Dec 5, 2020
    I'm in audit mode, will try deploying with some office program. I want to know, it is breaking anything.

    Edit:
    Not success, return back with error (attached)
    Code:
    2020-12-05 20:17:25, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.Search_1.14.0.19041_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat'.
    2020-12-05 20:17:25, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
    2020-12-05 20:17:25, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.Search_1.14.0.19041_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat.LOG1'.
    2020-12-05 20:17:25, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
    2020-12-05 20:17:25, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.Search_1.14.0.19041_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat.LOG2'.
    2020-12-05 20:17:25, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
    2020-12-05 20:17:25, Warning               SYSPRP Encountered error 0x91 while deleting directory '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.Search_1.14.0.19041_neutral_neutral_cw5n1h2txyewy'.
    2020-12-05 20:17:25, Info                  SYSPRP Ignoring not empty directories, which can happen when the activation store was not deleted.
    2020-12-05 20:17:25, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.StartMenuExperienceHost_10.0.19041.610_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat'.
    2020-12-05 20:17:25, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
    2020-12-05 20:17:25, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.StartMenuExperienceHost_10.0.19041.610_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat.LOG1'.
    2020-12-05 20:17:25, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
    2020-12-05 20:17:25, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.StartMenuExperienceHost_10.0.19041.610_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat.LOG2'.
    2020-12-05 20:17:25, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
    2020-12-05 20:17:25, Warning               SYSPRP Encountered error 0x91 while deleting directory '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.StartMenuExperienceHost_10.0.19041.610_neutral_neutral_cw5n1h2txyewy'.
    2020-12-05 20:17:25, Info                  SYSPRP Ignoring not empty directories, which can happen when the activation store was not deleted.
    2020-12-05 20:17:25, Warning               SYSPRP Encountered error 0x91 while deleting directory '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages'.
    2020-12-05 20:17:25, Info                  SYSPRP Ignoring not empty directories, which can happen when the activation store was not deleted.
    2020-12-05 20:17:25, Error                 SYSPRP Failed to repopulate Staged keys: 0x80070002.
    2020-12-05 20:17:25, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralize' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x2
    2020-12-05 20:17:25, Error                 SYSPRP SysprepSession::ExecuteAction: Failed during sysprepModule operation; dwRet = 0x2
    2020-12-05 20:17:25, Error                 SYSPRP SysprepSession::ExecuteInternal: Error in executing action for Microsoft-Windows-AppX-Sysprep; dwRet = 0x2
    2020-12-05 20:17:25, Error                 SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x2
    2020-12-05 20:17:25, Info                  SYSPRP SysprepSession::Execute: Sysprep mode was not specified, deleting it from registry
    2020-12-05 20:17:25, Error                 SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x2
    2020-12-05 20:17:25, Error      [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x2
    2020-12-05 20:17:25, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80070002
    2020-12-05 20:19:52, Info       [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
    2020-12-05 20:19:52, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
    2020-12-05 20:19:52, Info       [0x0f004d] SYSPRP The time is now 2020-12-05 20:19:52
    
     

    Attached Files:

  11. BAU

    BAU MDL Addicted

    Feb 10, 2009
    906
    1,877
    30
  12. xinso

    xinso MDL Guru

    Mar 5, 2009
    5,554
    7,776
    180
    #13 xinso, Dec 6, 2020
    Last edited: Dec 6, 2020
    staged applications?

    When I tried to add LCU to unsupported edition by modifying registry, the results were:

    [Case 1]
    Installed (and Device drivers installed completely) : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing

    [Case 2]]
    Staged (and Device drivers installed incompletely) : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages

    Now I always export and modify HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing.
     
  13. BAU

    BAU MDL Addicted

    Feb 10, 2009
    906
    1,877
    30
    And I don't service offline images much in the last decade or so :p
    Why would it be needed for offline images, is dism hindered from deprovision everything? Will check it out after I get some sleep
    PS I too seen some weird CBS behaviors, way more sensitive than appxes - (btw can streamline live removal of that as well)
     
  14. xinso

    xinso MDL Guru

    Mar 5, 2009
    5,554
    7,776
    180
  15. Javanicus

    Javanicus MDL Junior Member

    Mar 16, 2015
    69
    47
    0
  16. Javanicus

    Javanicus MDL Junior Member

    Mar 16, 2015
    69
    47
    0
  17. geepnozeex

    geepnozeex MDL Novice

    Oct 21, 2014
    8
    1
    0
    in offline image has no file StateRepository-Machine.srd
    what to do ?