Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DISM /online /cleanup-Image /spsuperseded
- DISM.exe /Online /Disable-Feature /Featurename:<name> /Remove
- dism.exe /online /cleanup-image /startcomponentcleanup
- sc query msiserver
- sc query TrustedInstaller
- sc stop msiserver
- sc stop TrustedInstaller
- sc config msiserver start= disabled
- sc config TrustedInstaller start= disabled
- icacls "%WINDIR%WinSxS" /save "%WINDIR%WinSxS.acl" /t
- takeown /f "%WINDIR%WinSxS" /r
- icacls "%WINDIR%WinSxS" /grant "%USERDOMAIN%%USERNAME%":(F) /t
- compact /s:"%WINDIR%WinSxS" /c /a /i *
- icacls "%WINDIR%WinSxS" /setowner "NT SERVICETrustedInstaller" /t
- icacls "%WINDIR%" /restore "%WINDIR%WinSxS.acl"
- del "%WINDIR%WinSxS.acl"
- sc config msiserver start= demand
- sc config TrustedInstaller start= demand
- sc start msiserver
- sc start TrustedInstaller
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement