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.
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 }
Thanks you very very much... Finally... Spoiler: CopyPasteStyle 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 } } Spoiler: Result 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}
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
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) Spoiler: Sysprep 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
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.
And I don't service offline images much in the last decade or so 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)
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: $bloat = [System.Collections.ArrayList]@() $bloat = Get-AppxPackage | Out-GridView -Title "Remove System Apps." -PassThru 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 Click OK in selectable pop-up grid type $bloat the terminal shows that $bloat = (1) Microsoft.AAD.BrokerPlugin and (2) Microsoft.BioEnrollment 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!