question

OBXBoost avatar image
0 Votes"
OBXBoost asked Dgorter commented

Windows 10 WIM, OneDrive Removal and SFC

When mounting the WIM, I browse the WIM under Windows\SysWOW64 and delete all of the files related to OneDrive, as well as the Start Menu shortcut for all users as part of my customization process for my Windows 10 Pro installer. When I do the initial install, there is no sign of OneDrive anywhere for any of the users. But, for some reason, if I ever run an SFC /scannow command, OneDrive gets reinstalled.
I thought by removing it fully from the image, that it wouldn't have anything to reinstall from. Am I missing something?

windows-10-setup
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@OBXBoost
Hi,

Just checking in to see if the information provided was helpful.

If the reply helped you, please remember to accept as answer.
If no, please reply and tell us the current situation in order to provide further help.

0 Votes 0 ·

@OBXBoost
Hi,

We have not get information from you for several days.

If the reply is useful for you, please accept as answer. It will be helpful to other members who have same questions.
If you have any other confuse, please reply to us directly.

0 Votes 0 ·
SSengupta-4080 avatar image
0 Votes"
SSengupta-4080 answered OBXBoost commented

It's normal...as SFC command will repair the missing files.

Turn off, disable, or uninstall OneDrive


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If it's removed from the image, how does it know how to reinstall itself?

0 Votes 0 ·
JennyFeng-MSFT avatar image
0 Votes"
JennyFeng-MSFT answered Dgorter commented

@OBXBoost
Hi,
Once you complete the steps, the Deployment Image Servicing and Management tool will connect to the Windows Update servers to download and replace any damaged files in the local image for Windows 10 as necessary.

Also, for your reference:
Remove OneDrive from windows 10 image
https://www.tenforums.com/installation-upgrade/20916-remove-onedrive-windows-10-image.html
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Hope above information can help you.

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jenny:
Thanks for your response. Part of my image creation process does include removal of that HKLM*\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\OneDriveSetup key, as well as deletion of those files.

0 Votes 0 ·

Hi,
Since one drive is a system file, and sfc command will automatically repair all system files, so no matter whether you delete it before, it will be reinstalled.
You can delete it again.

0 Votes 0 ·

On a side note, what does SFC check against to see what is missing, corrupt or intact? Is there an index file or some sort of database retained in Windows? If it's offline, it has to check against something, right? If it's online, does that change what it checks against, or does it stay local?

0 Votes 0 ·
Show more comments