Line 177 of Windows10SysPrepDebloater.ps1 will cause line 178 to always evaluate to false
$CloudStore = 'HKCUSoftware\Microsoft\Windows\CurrentVersion\CloudStore'
should be
$CloudStore = 'HKCU:Software\Microsoft\Windows\CurrentVersion\CloudStore'
Line 180 of Windows10SysPrepDebloater.ps1 will prompt for user input if there are child nodes
Remove-Item $CloudStore
May need to be changed to
Remove-Item $CloudStore -Recurse
Code as it is now
`Write-Output "Removing CloudStore from registry if it exists"
$CloudStore = 'HKCUSoftware\Microsoft\Windows\CurrentVersion\CloudStore'
Line 177 of Windows10SysPrepDebloater.ps1 will cause line 178 to always evaluate to false
$CloudStore = 'HKCUSoftware\Microsoft\Windows\CurrentVersion\CloudStore'
should be$CloudStore = 'HKCU:Software\Microsoft\Windows\CurrentVersion\CloudStore'
Line 180 of Windows10SysPrepDebloater.ps1 will prompt for user input if there are child nodes
Remove-Item $CloudStore
May need to be changed toRemove-Item $CloudStore -Recurse
Code as it is now `Write-Output "Removing CloudStore from registry if it exists" $CloudStore = 'HKCUSoftware\Microsoft\Windows\CurrentVersion\CloudStore'
`
should be `Write-Output "Removing CloudStore from registry if it exists" $CloudStore = 'HKCU:Software\Microsoft\Windows\CurrentVersion\CloudStore'
`