Jump to content

How to get rid of Candy Crush Soda Saga and other Windows 10 Start Menu junk for good!


Recommended Posts

Posted

 

 

Script appears to run but I do get an error at the top of the screen:

 

Extracting WIM from ISO

 

Export-WindowsImage : Unable to load DLL 'unattend.dll': The specified module could not be found. (Exception from

HRESULT: 0x8007007E)

At D:\w10x64\CandyCrusher.ps1:47 char:1

+ Export-WindowsImage -SourceImagePath "$ISODrive\Sources\install.wim" ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (:) [Export-WindowsImage], DllNotFoundException

+ FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.Dism.Commands.ExportWindowsImageCommand

 

Mounting image. This could take a while...

 

Adding .NET Framework 3.5.1

 

 

 

Path : D:\w10x64\Mount

Online : False

RestartNeeded : False

 

Integrating Servicing Stack update

Path : D:\w10x64\Mount

Online : False

RestartNeeded : False

 

Integrating Cumulative Update

 

Path : D:\w10x64\Mount

Online : False

RestartNeeded : False

 

Integrating Flash Player update

 

Path : D:\w10x64\Mount

Online : False

RestartNeeded : False

 

Removing apps...

 

Removing: Microsoft.3DBuilder

Removing: Microsoft.BingWeather

Removing: Microsoft.Getstarted

Removing: Microsoft.Messaging

Removing: Microsoft.Microsoft3DViewer

Removing: Microsoft.MicrosoftOfficeHub

Removing: Microsoft.MicrosoftSolitaireCollection

Removing: Microsoft.Office.OneNote

Removing: Microsoft.OneConnect

Removing: Microsoft.People

Removing: Microsoft.SkypeApp

Removing: Microsoft.Wallet

Removing: Microsoft.WindowsAlarms

Removing: Microsoft.WindowsCamera

Removing: microsoft.windowscommunicationsapps

Removing: Microsoft.WindowsFeedbackHub

Removing: Microsoft.WindowsMaps

Removing: Microsoft.WindowsSoundRecorder

Removing: Microsoft.XboxApp

Removing: Microsoft.XboxGameOverlay

Removing: Microsoft.XboxIdentityProvider

Removing: Microsoft.XboxSpeechToTextOverlay

Removing: Microsoft.ZuneMusic

Removing: Microsoft.ZuneVideo

 

Removing 'Contact Support' app

Path : D:\w10x64\Mount

Online : False

RestartNeeded : False

 

 

Customising the default user profile...

 

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

Saving changes to image and dismounting ISO

 

 

PS D:\w10x64>

 

 

 

Script run on a brand new install from "SW_DVD9_WIN_EDU_10_1703.1_64BIT_English_MLF_X21-47826.ISO"

Posted
Script appears to run but I do get an error at the top of the screen:

 

Extracting WIM from ISO

 

Export-WindowsImage : Unable to load DLL 'unattend.dll': The specified module could not be found. (Exception from

HRESULT: 0x8007007E)

At D:\w10x64\CandyCrusher.ps1:47 char:1

+ Export-WindowsImage -SourceImagePath "$ISODrive\Sources\install.wim" ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (:) [Export-WindowsImage], DllNotFoundException

+ FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.Dism.Commands.ExportWindowsImageCommand

 

Mounting image. This could take a while...

 

Adding .NET Framework 3.5.1

 

 

 

Path : D:\w10x64\Mount

Online : False

RestartNeeded : False

 

Integrating Servicing Stack update

Path : D:\w10x64\Mount

Online : False

RestartNeeded : False

 

Integrating Cumulative Update

 

Path : D:\w10x64\Mount

Online : False

RestartNeeded : False

 

Integrating Flash Player update

 

Path : D:\w10x64\Mount

Online : False

RestartNeeded : False

 

Removing apps...

 

Removing: Microsoft.3DBuilder

Removing: Microsoft.BingWeather

Removing: Microsoft.Getstarted

Removing: Microsoft.Messaging

Removing: Microsoft.Microsoft3DViewer

Removing: Microsoft.MicrosoftOfficeHub

Removing: Microsoft.MicrosoftSolitaireCollection

Removing: Microsoft.Office.OneNote

Removing: Microsoft.OneConnect

Removing: Microsoft.People

Removing: Microsoft.SkypeApp

Removing: Microsoft.Wallet

Removing: Microsoft.WindowsAlarms

Removing: Microsoft.WindowsCamera

Removing: microsoft.windowscommunicationsapps

Removing: Microsoft.WindowsFeedbackHub

Removing: Microsoft.WindowsMaps

Removing: Microsoft.WindowsSoundRecorder

Removing: Microsoft.XboxApp

Removing: Microsoft.XboxGameOverlay

Removing: Microsoft.XboxIdentityProvider

Removing: Microsoft.XboxSpeechToTextOverlay

Removing: Microsoft.ZuneMusic

Removing: Microsoft.ZuneVideo

 

Removing 'Contact Support' app

Path : D:\w10x64\Mount

Online : False

RestartNeeded : False

 

 

Customising the default user profile...

 

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

The operation completed successfully.

Saving changes to image and dismounting ISO

 

 

PS D:\w10x64>

 

 

 

Script run on a brand new install from "SW_DVD9_WIN_EDU_10_1703.1_64BIT_English_MLF_X21-47826.ISO"

 

Don't run under x86 module - doh!

Posted (edited)
Script appears to run but I do get an error at the top of the screen:

I have another script you can try. I will post a link later today.

 

I normally use 64-bit PowerShell like @3s-gtech. :)

Edited by Arthur
  • Thanks 1
  • 4 weeks later...
Posted (edited)

Has anyone tried this with 1709 yet? I'm about to modify my WIM and see what's left.

 

Edit: I have just ran the following command:

Get-AppxPackage | Sort-Object -Property Name | Select-Object -Property Name

Which has returned the following:

 

1527c705-839a-4832-9118-54d4Bd6a0c89

c5e2524a-ea46-4f67-841f-6a9465d9d515

E2A4F912-2574-4A75-9BB0-0D023378592B

F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE

InputApp

Microsoft.AAD.BrokerPlugin

Microsoft.AccountsControl

Microsoft.Advertising.Xaml

Microsoft.Advertising.Xaml

Microsoft.BingWeather

Microsoft.BioEnrollment

Microsoft.CredDialogHost

Microsoft.DesktopAppInstaller

Microsoft.ECApp

Microsoft.GetHelp

Microsoft.Getstarted

Microsoft.LockApp

Microsoft.Messaging

Microsoft.Microsoft3DViewer

Microsoft.MicrosoftEdge

Microsoft.MicrosoftOfficeHub

Microsoft.MicrosoftSolitaireCollection

Microsoft.MicrosoftStickyNotes

Microsoft.MSPaint

Microsoft.NET.Native.Framework.1.3

Microsoft.NET.Native.Framework.1.3

Microsoft.NET.Native.Framework.1.6

Microsoft.NET.Native.Framework.1.6

Microsoft.NET.Native.Runtime.1.3

Microsoft.NET.Native.Runtime.1.3

Microsoft.NET.Native.Runtime.1.4

Microsoft.NET.Native.Runtime.1.4

Microsoft.NET.Native.Runtime.1.6

Microsoft.NET.Native.Runtime.1.6

Microsoft.Office.OneNote

Microsoft.OneConnect

Microsoft.People

Microsoft.PPIProjection

Microsoft.Print3D

Microsoft.Services.Store.Engagement

Microsoft.Services.Store.Engagement

Microsoft.SkypeApp

Microsoft.StorePurchaseApp

Microsoft.VCLibs.140.00

Microsoft.VCLibs.140.00

Microsoft.VCLibs.140.00.UWPDesktop

Microsoft.VCLibs.140.00.UWPDesktop

Microsoft.Wallet

Microsoft.Windows.Apprep.ChxApp

Microsoft.Windows.AssignedAccessLockApp

Microsoft.Windows.CloudExperienceHost

Microsoft.Windows.ContentDeliveryManager

Microsoft.Windows.Cortana

Microsoft.Windows.HolographicFirstRun

Microsoft.Windows.OOBENetworkCaptivePortal

Microsoft.Windows.OOBENetworkConnectionFlow

Microsoft.Windows.ParentalControls

Microsoft.Windows.PeopleExperienceHost

Microsoft.Windows.Photos

Microsoft.Windows.PinningConfirmationDialog

Microsoft.Windows.SecHealthUI

Microsoft.Windows.SecondaryTileExperience

Microsoft.Windows.SecureAssessmentBrowser

Microsoft.Windows.ShellExperienceHost

Microsoft.WindowsAlarms

Microsoft.WindowsCalculator

Microsoft.WindowsCamera

microsoft.windowscommunicationsapps

Microsoft.WindowsFeedbackHub

Microsoft.WindowsMaps

Microsoft.WindowsSoundRecorder

Microsoft.WindowsStore

Microsoft.Xbox.TCUI

Microsoft.XboxApp

Microsoft.XboxGameCallableUI

Microsoft.XboxGameOverlay

Microsoft.XboxIdentityProvider

Microsoft.XboxSpeechToTextOverlay

Microsoft.ZuneMusic

Microsoft.ZuneVideo

windows.immersivecontrolpanel

Windows.PrintDialog

 

Now to find out what I should and shouldn't remove!

Edited by CHiLL
Posted
I have a new script that works well with 1709. You can use it with either the install.wim or ISO (like @3s-gtech's script in post #127). :)

 

If you copy the 1709 ISO from VLSC into the same folder as the script you won't have to change the path on the last line.

 

#Requires –Version 5.0
#Requires -RunAsAdministrator
#Requires –Modules Dism

Function Invoke-RemoveBuiltinAppsOffline {

   [CmdletBinding()]
   Param(
       [Parameter(Mandatory=$true, Position=1, HelpMessage="The path to your .iso or .wim")]
       [ValidateScript({ If (Test-Path $_ -PathType 'Leaf') { $True } Else { Throw "Cannot find $_" } })]
       [ValidatePattern('.(iso|wim)$')]
       [string]$ImagePath,

       [Parameter(Mandatory=$false)]
       [string]$MountDir = ".\Mount"
   )

   BEGIN {

       $ScriptDir = $PSScriptRoot
       Set-Location "$ScriptDir"

       if (!(Test-Path -Path "$MountDir" -PathType Container)) {
           New-Item "$MountDir" -Type Directory -Force | Out-Null
       }

       # Features on Demand Whitelist
       $WhiteListOnDemand = "NetFX3|Tools.Graphics.DirectX|Tools.DeveloperMode.Core|Language|Browser.InternetExplorer|Media.WindowsMediaPlayer|OneCoreUAP.OneSync|App.Support.QuickAssist"

       # [color="#FF0000"]AppX Package Whitelist. These are the apps you want to keep[/color]
       $WhiteListedApps = @(
           'Microsoft.MicrosoftStickyNotes',
           'Microsoft.MSPaint',
           'Microsoft.Windows.Photos',
           'Microsoft.WindowsCalculator',
           'Microsoft.WindowsStore'
       )
   }

   PROCESS {

       If ([system.IO.Path]::GetExtension($ImagePath).Equals('.iso')) {

           #region Copy WIM from ISO
           Mount-DiskImage -ImagePath "$ImagePath"
           $ISODrive = "{0}{1}" -f [string](Get-DiskImage -ImagePath "$ImagePath" | Get-Volume).DriveLetter, ':'

           Write-Output -InputObject "Copying WIM from ISO. Please wait...`n"
           Copy-Item -Path "$ISODrive\Sources\install.wim" -Destination "$ScriptDir\install.wim" -Force -PassThru | Set-ItemProperty -Name IsReadOnly -Value $false
           Dismount-DiskImage -ImagePath "$ImagePath"
           $ImagePath = "$ScriptDir\install.wim"
           #endregion
       }

       #region Remove built-in apps from image index(es)
       Get-WindowsImage -ImagePath "$ImagePath" -ErrorAction Stop | ForEach-Object {

           # Mount image(s)
           "{0} {1}{2}" -f "Mounting image", $($_.ImageIndex), "`n"
           Mount-WindowsImage -Path "$MountDir" -ErrorAction Stop -Index $_.ImageIndex -ImagePath $_.ImagePath | Out-Null

           # Get a list of all apps
           $AppArrayList = Get-AppxProvisionedPackage -Path "$MountDir" | Select-Object -Property DisplayName,PackageName | Sort-Object -Property DisplayName

           # Loop through the list of apps
           ForEach ($App in $AppArrayList) {

               # Exclude whitelisted apps
               if (($App.DisplayName -in $WhiteListedApps)) {
                   Write-Output -InputObject "Skipping: $($App.DisplayName)"
               }
               else {
               # Remove remaining apps

                   # Gather package names
                   $AppProvisioningPackageName = Get-AppxProvisionedPackage -Path "$MountDir" | Where-Object { $_.DisplayName -like $App.DisplayName } | Select-Object -ExpandProperty PackageName

                   # Attempt to remove AppxProvisioningPackage
                   if ($AppProvisioningPackageName -ne $null) {
                       try {
                           Write-Output -InputObject "Removing: $($App.DisplayName)"
                           Remove-AppxProvisionedPackage -PackageName $AppProvisioningPackageName -Path "$MountDir" -ErrorAction Stop | Out-Null
                       }
                       catch [system.Exception] {
                           Write-Warning -Message $_.Exception.Message
                       }
                   }
               } # Else
           } # ForEach

           Write-Output -InputObject "`nStarting Features on Demand V2 removal`n"
           $OnDemandFeatures = Get-WindowsCapability -Path "$MountDir" | Where-Object { $_.Name -notmatch $WhiteListOnDemand -and $_.State -like "Installed" } | Select-Object -ExpandProperty Name

           ForEach ($Feature in $OnDemandFeatures) {
               try {
                   Write-Output -InputObject "Removing: $($Feature)"
                   Get-WindowsCapability -Path "$MountDir" -ErrorAction Stop | Where-Object { $_.Name -like $Feature } | Remove-WindowsCapability -Path "$MountDir" -ErrorAction Stop | Out-Null
               }
               catch [system.Exception] {
                   Write-Warning -Message $_.Exception.Message
               }
           }

           "{0}{1} {2}{3}" -f "`n", "Unmounting image", $($_.ImageIndex), "`n"
           Dismount-WindowsImage -Path "$MountDir" -Save -ErrorAction Stop | Out-Null

       } #endregion

   }

   END {}

}

# Example
Invoke-RemoveBuiltinAppsOffline -ImagePath "$PSScriptRoot\SW_DVD5_Win_Pro_Ent_Edu_N_10_1709_64BIT_Eng_Intl_MLF_X21-50145.iso"

 

 

My script makes the following changes...

 

[b]Keeps[/b]
Microsoft.MicrosoftStickyNotes
Microsoft.MSPaint
Microsoft.Windows.Photos
Microsoft.WindowsCalculator
Microsoft.WindowsStore

[b]Removes[/b]
Microsoft.BingWeather
Microsoft.DesktopAppInstaller
Microsoft.GetHelp
Microsoft.Getstarted
Microsoft.Messaging
Microsoft.Microsoft3DViewer
Microsoft.MicrosoftOfficeHub
Microsoft.MicrosoftSolitaireCollection
Microsoft.Office.OneNote
Microsoft.OneConnect
Microsoft.People
Microsoft.Print3D
Microsoft.SkypeApp
Microsoft.StorePurchaseApp
Microsoft.Wallet
Microsoft.WindowsAlarms
Microsoft.WindowsCamera
microsoft.windowscommunicationsapps
Microsoft.WindowsFeedbackHub
Microsoft.WindowsMaps
Microsoft.WindowsSoundRecorder
Microsoft.Xbox.TCUI
Microsoft.XboxApp
Microsoft.XboxGameOverlay
Microsoft.XboxIdentityProvider
Microsoft.XboxSpeechToTextOverlay
Microsoft.ZuneMusic
Microsoft.ZuneVideo

 

@kennysarmy. This script should do what you need too. :)

 

 

Arthur,

 

Does it still add in the updates?

I seem to recall the last script required an Updates folder with sub-folders named "CU", "Flash Player" and "Servicing Stack" with relevant updates downloaded from the Microsoft Update Catalog.

 

 

 

 

 

 

 

--------------------------------------------------------------------------------

Join Date:Feb 2007Location:51.5044937,-0.0860132Posts:15,337Thank Post:556Thanked 5,507 Times in 3,791 Posts Rep Power:1433

 

 

 

 

 

 

@3s-gtech, @jmak. Here's the new script...

 

Download: CandyCrusher.zip

 

This works slightly differently to the old script so I have written some instructions.

 

1.Save the script into the root of a new folder. e.g. D:\W10x64.

 

 

2.Copy your Windows 10 v1607 July '16 ISO into this folder (same location).

 

 

3.Create an Updates subfolder (e.g. D:\W10x64\Updates) containing three subfolders (CU, Servicing Stack and Flash Player).

 

 

4.Download the updates linked below that match the architecture of your Windows ISO and save each .msu into its relevant subfolder within the Updates folder.

 

 

 

Code:

Cumulative Update (Janaury 2017, 14393.726)

x64:
http://download.windowsupdate.com/c/msdownload/update/software/crup/2017/01/windows10.0-kb3216755-x64_eba0675fd22087449c80b4d26df6b7035e9fb91f.msu

x86:
http://download.windowsupdate.com/d/msdownload/update/software/crup/2017/01/windows10.0-kb3216755-x86_0706d23dba493b295a32b9b56604aa0b08971ac7.msu

 

 

Code:

Servicing Stack (Janaury 2017)

x64:
http://download.windowsupdate.com/d/msdownload/update/software/crup/2017/01/windows10.0-kb3211320-x64_2abc94fceb4d1cdd908b3bdba473e28e0c061a3d.msu

x86:
http://download.windowsupdate.com/c/msdownload/update/software/crup/2017/01/windows10.0-kb3211320-x86_b450a744674c27bf2871f8db28f0e2e13e874582.msu

 

 

Code:

Flash Player (MS17-005)

x64:
http://download.windowsupdate.com/d/msdownload/update/software/secu/2017/02/windows10.0-kb4010250-x64_fa7ad44be8dd1c65b51f07efbee478b0fbf82f5c.msu

x86:
http://download.windowsupdate.com/d/msdownload/update/software/secu/2017/02/windows10.0-kb4010250-x86_8e6459131457bd164eee5160d316d223ba599c2f.msu

 

5.Amend the $AppsToKeep and $ISO variables on lines 17 & 18 of the script.

 

 

6.Run the script from an elevated PowerShell or PowerShell ISE prompt on a Windows 10 PC. When it finishes you should end up with an image that contains the latest updates and no unwanted apps.

 

Thanks.

  • Thanks 2
Posted
No, the new script doesn't do this. I started to build a combined one on Friday, but my head wasn't clear enough to do so. Shouldn't be too hard to knock up by mashing together the correct parts of the old and new scripts.
Posted
Does it still add in the updates?

It doesn't. I was planning on creating a separate script for that since it didn't make sense to integrate updates (or modify registry settings) with a function called "Invoke-RemoveBuiltinAppsOffline".

 

I'll post something shortly (if @3s-gtech doesn't beat me to it). :)

Posted
Currently installing 1703 on a couple of old laptops (with other fun quirks rearing their heads) so I'm not looking at this yet. May end up skipping 1709 entirely here, as it's taken me nearly four months to roll out 1703 and I haven't finished yet (!)
Posted
Currently installing 1703 on a couple of old laptops (with other fun quirks rearing their heads) so I'm not looking at this yet. May end up skipping 1709 entirely here, as it's taken me nearly four months to roll out 1703 and I haven't finished yet (!)

My thoughts exactly. I'm now aiming on a once-a-year deployment plan and will probably stick with the March edition, although I'm beginning to get the impression that the March edition has more new features and the September edition aims to fix the problems with a couple of new features :-)

 

Thanks for this script, it really helps. I add a few extra things to my WIM, such as a extra registry entries, a stripped down basic defaultstartmenulayout file... I also strip out these packages

Microsoft-Windows-QuickAssist-Package~****

Microsoft-Windows-ContactSupport-Package~****

Posted (edited)

Hi, there..

 

Not sure if it was a typo, or something that's changed in 1709, but..

 

C:\Users\Default\AppData\Microsoft\Windows\Shell

is now

C:\Users\Default\AppData\Local\Microsoft\Windows\Shell

 

(And for avoidance of doubt - that says shell at the end, not S space hell as it randomly seems to render on my Chrome browser here?!?!?)

 

Cheers,

Gerard

Edited by gerardsweeney
Posted

Hi,

 

Just used this script on my 1709 iso. Installed on a test laptop and noticed a couple of apps are stilll lurking...

 

I have the 'Connect' app still in the start menu and the 'People' app on the taskbar. I was also hoping 'OneDrive', 'Paint 3D' and 'Mixed Reality Portal', would have disappeared also. I didn't watch the entire sequence of apps being removed from the WIM. Do you think it missed them or they cannot be removed?

 

I have run the get appxpackage in PS as above and it returned this:

 

appxpackage.jpg

  • Thanks 1
Posted
onedrive isn't an app in that way best way ive found to kill it is remove read/execute access to the exe file (cant remember where it is off hand but its in windows somewhere and runs everytime a new user logs on
Posted
onedrive isn't an app in that way best way ive found to kill it is remove read/execute access to the exe file (cant remember where it is off hand but its in windows somewhere and runs everytime a new user logs on

 

Does Computer Configuration > Administrative Templates > Windows Components > OneDrive > Prevent the usage of OneDrive for file storage work?

Posted
Does Computer Configuration > Administrative Templates > Windows Components > OneDrive > Prevent the usage of OneDrive for file storage work?

 

We combine that policy setting with the following registry keys:

 

x64

HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

System.IsPinnedToNameSpaceTree [REG_DWORD] 0

 

x86

HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

System.IsPinnedToNameSpaceTree [REG_DWORD] 0

 

Those keys remove the OneDrive link from File Explorer's left-hand-menu.

Posted
Does Computer Configuration > Administrative Templates > Windows Components > OneDrive > Prevent the usage of OneDrive for file storage work?

 

not after about 1511 iirc

Posted
Do you think it missed them or they cannot be removed?

Paint 3D can be removed if you delete Microsoft.MSPaint from the $WhiteListedApps variable. I kept it in myself because my school actually uses it. :)

 

The OneDrive setup program can be prevented from running when users login by deleting the relevant entry from the default user's registry hive (HKCU ... Run). I can post more detailed instructions if you want?

 

To hide the People Bar see the following post...

 

www.edugeek.net/forums/windows-10/187732-date-released-fall-creators-update-4.html#post1620173

 

To remove the QuickAssist app delete |App.Support.QuickAssist from line 28.

 

Before

$WhiteListOnDemand = "NetFX3|Tools.Graphics.DirectX|Tools.DeveloperMode.Core|Language|Browser.InternetExplorer|Media.WindowsMediaPlayer|OneCoreUAP.OneSync[color="#FF0000"]|App.Support.QuickAssist[/color]"

 

After

$WhiteListOnDemand = "NetFX3|Tools.Graphics.DirectX|Tools.DeveloperMode.Core|Language|Browser.InternetExplorer|Media.WindowsMediaPlayer|OneCoreUAP.OneSync"

  • Thanks 1
Posted
We combine that policy setting with the following registry keys:

 

x64

HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

System.IsPinnedToNameSpaceTree [REG_DWORD] 0

 

x86

HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

System.IsPinnedToNameSpaceTree [REG_DWORD] 0

 

Those keys remove the OneDrive link from File Explorer's left-hand-menu.

 

Hmm, never seen that, of course I block exes from running from c:\users, so it never installs, because that way lies ransomware.

 

And in GPO:User>Admin>System> Don't run specified Windows applications I put onedrive.exe, to avoid an error.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...