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
    5
    7
    0
    #1 100055, Dec 15, 2018
    Last edited: Dec 16, 2018
  2. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    482
    30
    good find with the trigger
     
  3. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    7,897
    10,733
    240
    :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. AveYo

    AveYo MDL Expert

    Feb 10, 2009
    1,836
    5,693
    60
    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
    }
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Javac75

    Javac75 MDL Junior Member

    Mar 16, 2015
    89
    63
    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. AveYo

    AveYo MDL Expert

    Feb 10, 2009
    1,836
    5,693
    60
    #7 AveYo, 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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,695
    340
  9. Javac75

    Javac75 MDL Junior Member

    Mar 16, 2015
    89
    63
    0
  10. Javac75

    Javac75 MDL Junior Member

    Mar 16, 2015
    89
    63
    0
    #10 Javac75, 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. AveYo

    AveYo MDL Expert

    Feb 10, 2009
    1,836
    5,693
    60
    #11 AveYo, Dec 6, 2020
    Last edited: Dec 6, 2020
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,695
    340
    #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. AveYo

    AveYo MDL Expert

    Feb 10, 2009
    1,836
    5,693
    60
    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)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,696
    13,695
    340
  15. Javac75

    Javac75 MDL Junior Member

    Mar 16, 2015
    89
    63
    0
  16. Javac75

    Javac75 MDL Junior Member

    Mar 16, 2015
    89
    63
    0
  17. geepnozeex

    geepnozeex MDL Junior Member

    Oct 21, 2014
    69
    64
    0
    in offline image has no file StateRepository-Machine.srd
    what to do ?
     
  18. AeonX

    AeonX MDL Addicted

    May 24, 2013
    793
    719
    30
    Even after installing a cumulative update?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    #20 spanishfly, Aug 8, 2021
    Last edited: Aug 8, 2021
    I'm trying to edit your script so it accepts user input. I'm struggling. I think this is a hybrid DOS/PowerShell script?
    In an open Administrator PowerShell terminal I can enter in order:
    1. $bloat = [System.Collections.ArrayList]@()
    2. $bloat = Get-AppxPackage | Out-GridView -Title "Remove System Apps." -PassThru
    3. In the selectable grid that pops up, I choose a couple of safe-to-remove apps like (1) Microsoft.AAD.BrokerPlugin and (2) Microsoft.BioEnrollment
    4. Click OK in selectable pop-up grid
    5. type $bloat
    6. the terminal shows that $bloat = (1) Microsoft.AAD.BrokerPlugin and (2) Microsoft.BioEnrollment
    7. Great!
    If I then replace
    Code:
    $bloat = @(
      "c5e25 ....Preview"
    )
    With
    Code:
    $bloat = [System.Collections.ArrayList]@()
    $bloat = Get-AppxPackage | Out-GridView -Title "Remove System Apps." -PassThru
    It seems to work, but then actually does nothing.
    I'm stumped!
    Part of my struggle relates to not understanding how to debug a hybrid script.
    DOS: PAUSE half-works. PowerShell: "Read-Host -Prompt "Press Enter to continue" doesn't work.
    Frustration is working fine!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...