Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SuggestedApps" /f Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEverEnabled" /t REG_DWORD /d "0" /f Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d "0" /f Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OemPreInstalledAppsEnabled" /t REG_DWORD /d "0" /f Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d "0" /f Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d "0" /f Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d "0" /f Reg add "HKU\Default\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d "0" /f Reg add "HKU\Default\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OemPreInstalledAppsEnabled" /t REG_DWORD /d "0" /f Reg add "HKU\Default\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d "0" /f Reg add "HKU\Default\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d "0" /f Reg load "hku\Default" "C:\Users\Default\NTUSER.DAT" Simply made a script to run before removing the apps, and that cleared it for me. This, but found the following registry changes to work, before I removed the apps using the Get-AppxPackage/ Remove-AppxPackage. There are some minor articles when I googled In my setup we use the Pro version, and in order to be able to remove it for all users I have to make some registry changes otherwise the apps will return/ reinstall eventually for new users when they log in. Spend way to much time to get this solved, but I found out that Windows 10 Pro and the enterprise version handles this differently. Then deny access to the file so the System SIDs above cannot use the file. Delete it, replace it with a file with same name. So find the Setup file of each app you want to kill. Of course giving you this information to you will probably make Microsoft very their method of installing this app. What this does is prevent the system and the installer from being able to read/write to the file. It is important to notice the File Size when done at last pause. ICACLS "C:\Windows\SysWOW64\OneDriveSetup.exe" /deny "NT SERVICE\TrustedInstaller":FĭIR "C:\Windows\SysWOW64\OneDriveSetup.exe"Įcho SHOULD Be Zero size. ICACLS "C:\Windows\SysWOW64\OneDriveSetup.exe" /deny SYSTEM:F ICACLS "C:\Windows\SysWOW64\OneDriveSetup.exe" /grant %username%:F ICACLS "C:\Windows\SysWOW64\OneDriveSetup.exe" /inheritance:d TYPE NUL > "C:\Windows\SysWOW64\OneDriveSetup.exe" TAKEOWN /f "C:\Windows\SysWOW64\OneDriveSetup.exe"ĭel "C:\Windows\SysWOW64\OneDriveSetup.exe" For some reason it does not always work the first time. ![]() You may need to run this one or two times to get it to the make the file inert. Which we changed the ownership and permissions on it so that Microsoft cannot Then we deleted the file, and then we replaced the file with one of our own files. ![]() We located the OneDriveSetup file and took ownership of the setup file. Second, This is what we came up with, and it is the most important!!! ![]() REG DELETE "HKEY_CLASSES_ROOT\CLSID\" /f > NUL 2>
0 Comments
Leave a Reply. |