intika Posted November 10, 2015 Posted November 10, 2015 Think I may revert back to 10240 just to cleanup and uninstall with the Github method above before the 586 drop tomorrow to see how that compares to Noel who prob just gonna wait and see what happens. Then we'll have Notes against diff situations. Already have the Machine.srd from the 586 and its tweaked but don't have a clean one from 10240 to compare.I'll just say don't use the google 586 d/lNo need to revert backjust check if you have the package you want to remove with this command "Get-AppxPackage -AllUsers"if yes, check if the files are still there "c:\windows\systemapps\yourpackage" otherwise restore them from dvd from "x:\sources\image.wim" (open with 7zip launched as trustedinstaller)then reinstall the package with "Add-AppxPackage -DisableDevelopmentMode -Register c:\windows\systemapps\yourapp\AppXManifest.xml"then you could uninstall it with the git method.if you have an updated package, extract the files from the cumulative update file instead of dvd Last case if you package is not listed with "Get-AppxPackage -AllUsers" or "Get-AppxPackage" then just restore the files from dvd/update fileand run "Add-AppxPackage -DisableDevelopmentMode -Register c:\windows\systemapps\yourapp\AppXManifest.xml you could then uninstall it with the method you want to no need to make things complicated bro
dencorso Posted November 10, 2015 Posted November 10, 2015 If maxXPsoft has an image of the 10240 previously installed in the machine, then reverting to that image probably would be faster than restoring/reinstaling things, and guaranteed to be exactly as from a fresh install. It's not necessarily more complicated than otherwise. Just my 2¢, of course...
NoelC Posted November 10, 2015 Posted November 10, 2015 Note 2 : in my case i just kept those 4 packages Microsoft.AccountsControl_10.0.10240.16384_neutral__cw5n1h2txyewyMicrosoft.Windows.ShellExperienceHost_10.0.10240.16384_neutral_neutral_cw5n1h2txyewywindows.immersivecontrolpanel_6.2.0.0_neutral_neutral_cw5n1h2txyewyWindows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy That's good info. Up to now I have these: PS C:\TEMP> Get-AppxPackage -AllUsers | Select PackageFullNamePackageFullName---------------Microsoft.VCLibs.120.00_12.0.21005.1_x86__8wekyb3d8bbweMicrosoft.VCLibs.120.00_12.0.21005.1_x64__8wekyb3d8bbweMicrosoft.Appconnector_1.3.3.0_neutral__8wekyb3d8bbweMicrosoft.WinJS.2.0_1.0.9600.17018_neutral__8wekyb3d8bbweMicrosoft.Windows.ShellExperienceHost_10.0.10240.16384_neutral_neutral_cw5n1h2txyewywindows.immersivecontrolpanel_6.2.0.0_neutral_neutral_cw5n1h2txyewyMicrosoft.AccountsControl_10.0.10240.16384_neutral__cw5n1h2txyewyMicrosoft.LockApp_10.0.10240.16384_neutral__cw5n1h2txyewyMicrosoft.Windows.AssignedAccessLockApp_1000.10240.16384.0_neutral_neutral_cw5n1h2txyewy The VCLibs entries are from Visual Studio, though I don't know whether I actually need them if I'm not developing Universal Apps. Based on what you've written, it looks like I could remove these without problems: Microsoft.Appconnector_1.3.3.0_neutral__8wekyb3d8bbweMicrosoft.WinJS.2.0_1.0.9600.17018_neutral__8wekyb3d8bbweMicrosoft.LockApp_10.0.10240.16384_neutral__cw5n1h2txyewyMicrosoft.Windows.AssignedAccessLockApp_1000.10240.16384.0_neutral_neutral_cw5n1h2txyewy Out of curiosity, why did you keep Windows.MiracastView? -Noel
maxXPsoft Posted November 11, 2015 Author Posted November 11, 2015 ahh yes my Acronis images are much easierReverted back and tried Git and they won't uninstall this timeRemove-AppxPackage Microsoft.Windows.Cortana_1.4.8.176_neutral_neutral_cw5n1h2txyewy HRESULT: 0x80073CFA)Same on Edge
intika Posted November 11, 2015 Posted November 11, 2015 (edited) Note 2 : in my case i just kept those 4 packages Microsoft.AccountsControl_10.0.10240.16384_neutral__cw5n1h2txyewyMicrosoft.Windows.ShellExperienceHost_10.0.10240.16384_neutral_neutral_cw5n1h2txyewywindows.immersivecontrolpanel_6.2.0.0_neutral_neutral_cw5n1h2txyewyWindows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy That's good info. Up to now I have these: PS C:\TEMP> Get-AppxPackage -AllUsers | Select PackageFullNamePackageFullName---------------Microsoft.VCLibs.120.00_12.0.21005.1_x86__8wekyb3d8bbweMicrosoft.VCLibs.120.00_12.0.21005.1_x64__8wekyb3d8bbweMicrosoft.Appconnector_1.3.3.0_neutral__8wekyb3d8bbweMicrosoft.WinJS.2.0_1.0.9600.17018_neutral__8wekyb3d8bbweMicrosoft.Windows.ShellExperienceHost_10.0.10240.16384_neutral_neutral_cw5n1h2txyewywindows.immersivecontrolpanel_6.2.0.0_neutral_neutral_cw5n1h2txyewyMicrosoft.AccountsControl_10.0.10240.16384_neutral__cw5n1h2txyewyMicrosoft.LockApp_10.0.10240.16384_neutral__cw5n1h2txyewyMicrosoft.Windows.AssignedAccessLockApp_1000.10240.16384.0_neutral_neutral_cw5n1h2txyewy The VCLibs entries are from Visual Studio, though I don't know whether I actually need them if I'm not developing Universal Apps. Based on what you've written, it looks like I could remove these without problems: Microsoft.Appconnector_1.3.3.0_neutral__8wekyb3d8bbweMicrosoft.WinJS.2.0_1.0.9600.17018_neutral__8wekyb3d8bbweMicrosoft.LockApp_10.0.10240.16384_neutral__cw5n1h2txyewyMicrosoft.Windows.AssignedAccessLockApp_1000.10240.16384.0_neutral_neutral_cw5n1h2txyewy Out of curiosity, why did you keep Windows.MiracastView? -Noel I kept miracast in case i want to use the wifi display stream system on an other device (tablet or else...) but i finally delete it because i don't think i will need that as i use hdmi when i need Finally minimal packages are :Microsoft.AccountsControl ================== Modern account controlMicrosoft.Windows.ShellExperienceHost ======= modern start menu / clock / notification shellwindows.immersivecontrolpanel ============= Modern control pannel All the rest could be deleted without issue. I am also using visual studio 2015 i deleted the vclibs because i am not developing modern app, also those libs could be used on other modern app, if you don't use modern app at all you could get rid of those packages too. Edited November 11, 2015 by intika 2
intika Posted November 12, 2015 Posted November 12, 2015 ahh yes my Acronis images are much easierReverted back and tried Git and they won't uninstall this timeRemove-AppxPackage Microsoft.Windows.Cortana_1.4.8.176_neutral_neutral_cw5n1h2txyewy HRESULT: 0x80073CFA)Same on Edgeafter reboot can you make a new copy of your database and check if "IsInbox" is still to 0 ?you could also test the the uninstall command as trustedinstaller (with the tool devxexec - http://developex.com/custom-software/devx-exec.html)"devxexec.exe /user:TrustedInstaller powershell.exe"
dencorso Posted November 12, 2015 Posted November 12, 2015 Just to keep related info together, there's another very reliable way to become the TrustedInstaller: Yes , "RunAsTI64" is the "evolution" of the programs talked here, joakim (Joakim Shicht) released it on github:https://github.com/jschicht/RunAsTI RunAsTI or RunAsTrustedInstallerIs a tool to launch a program of choice (usually cmd.exe) with the same privileges as the TrustedInstaller. That privilege is very powerfull! Actually the tool makes a clone of the token from TrustedInstaller, and thus the newly created process has an identical token.Why would you need it? Sometimes it is just not enough to just be running as "nt authority\system". Maybe it's a file or a registry key that is locked. Running a tool with this powerfull privilege most likely solve that. Usually such an issue may be due to Windows Resource Protection (WRP) protecting it (previously called Windows File Protection (WFP)); http://msdn.microsoft.com/en-us/library/windows/desktop/aa382503(v=vs.85).aspxHow do you run it? Simply double click it and cmd.exe will launch. Or pass it the program to launch as parameter.The tool is actually a merge of 2 previous tools; RunAsSystem and RunFromToken. The curious ones might notice that RunFromToken is attached as a resource.The tool only runs on nt6.x (Vista and later), since TrustedInstaller does not exist on earlier Windows versions.Requirement: Administrator. 2
maxXPsoft Posted November 12, 2015 Author Posted November 12, 2015 (edited) after reboot can you make a new copy of your database and check if "IsInbox" is still to 0 ?you could also test the the uninstall command as trustedinstaller (with the tool devxexec - http://developex.com/custom-software/devx-exec.html)"devxexec.exe /user:TrustedInstaller powershell.exe" Problem was I think was StateRepository was not killed and unable to do anything with file.I went back to where I was for now. Could not copy file with the cmds, del cmd, copy it back afterwards,I took ownership, opened folder but could not delete extra files like from cmd del -Machine.* Said they were in use, then when sc start StateRepository it error saying it already running. Copied manually back. It finally took. was then able to run uninstall but since I was back where I originally was where they were uninstalled with wimtweak. May go back and try again with the RunAsTI right above this post Edited November 13, 2015 by maxXPsoft 1
NoelC Posted November 13, 2015 Posted November 13, 2015 By the way, have you any idea how to accomplish this feat (removal of all Apps, including winstore) on Win 8.1? I'm just curious, as I was poking around to see what similarities there are and I found that there is no StateRepository-Machine.srd on that system. -Noel
maxXPsoft Posted November 13, 2015 Author Posted November 13, 2015 (edited) By the way, have you any idea how to accomplish this feat (removal of all Apps, including winstore) on Win 8.1? I'm just curious, as I was poking around to see what similarities there are and I found that there is no StateRepository-Machine.srd on that system. -NoelEdit this is 8.1: http://blogs.technet.com/b/deploymentguys/rsscomments.aspx?WeblogPostID=3604187 Edited November 13, 2015 by maxXPsoft
maxXPsoft Posted November 13, 2015 Author Posted November 13, 2015 This seemed to work better taking down the State ran all at once. Oh well whatever workstaskkill /im sihost.exe /fFOR /F "usebackq tokens=2 skip=2" %i IN (`tasklist /svc /fi "services eq StateRepository"`) DO taskkill /PID %i /fFOR /F "usebackq tokens=2 skip=2" %i IN (`tasklist /svc /fi "services eq StateRepository"`) DO taskkill /PID %i /fFOR /F "usebackq tokens=2 skip=2" %i IN (`tasklist /svc /fi "services eq StateRepository"`) DO taskkill /PID %i /fdel %ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.*
intika Posted November 13, 2015 Posted November 13, 2015 Wondering if running the original method as trustedinstaller make as well a clean uninstall (install_wim_tweak)
maxXPsoft Posted November 13, 2015 Author Posted November 13, 2015 Wondering if running the original method as trustedinstaller make as well a clean uninstall (install_wim_tweak)It was written quite awhile back 2008 so not sure. He used pkgmgr in his code and it is deprecated now replaced by Dism. That may be reason its not getting everything with these apps. That and MS moved everything around with 10. I've been looking at his code 1
maxXPsoft Posted November 13, 2015 Author Posted November 13, 2015 (edited) BTW that RunasTIWas watching and seen something in consoleWarning: The right was probably not added correctly to your accountBut it does give you an Admin console, psexec does same though Edited November 13, 2015 by maxXPsoft
intika Posted November 14, 2015 Posted November 14, 2015 BTW that RunasTIWas watching and seen something in consoleWarning: The right was probably not added correctly to your accountBut it does give you an Admin console, psexec does same thoughi personally usehttp://developex.com/custom-software/devx-exec.htmldevxexec.exe /user:TrustedInstaller cmd.exe i believe psexec could only run commands as system or other users not TI
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now