KevinB Posted July 4, 2019 Posted July 4, 2019 I'm not sure how much help this info is, but I've been looking at what happens while a profile is deleted and according to procmon there are errors associated with each file/folder in a user's Onedrive folderlike this: BUFFER OVERFLOW FSCTL_GET_REPARSE_POINT INVALID PARAMETER IOCTL_MOUNTDEV_QUERY_DEVICE_NAME Both of these refer to reparse points that the file system can't follow for some reason. Yet if I manually delete the files as local or domain admin, they delete fine. I'm leaning towards it being a permissions issue and that whatever process is trying to delete the Onedrive folder doesn't have sufficient permissions in the context that it's running in, but I can't think of a way of working around that.
CCoulter Posted July 4, 2019 Author Posted July 4, 2019 OneDrive “Files on demand” is a new feature that makes this possible as it basically makes it cloud only by default and only actually downloads anything you open or create. Interesting. might be something to do with the fact that OneDrive uses placeholders for online files. God knows what the OS makes of those. Windows explorer sees a 6gb folder but it’s empty apart from placeholders with 0 bytes size. Its not purely open files though as my “remove cached profiles” GPO and even my PS start-up and logon scripts can’t delete these folders. Possibly a corruption or something unique with these new file types. The latter would explain the “folder is not empty” error.
KevinB Posted July 4, 2019 Posted July 4, 2019 Interestingly, reparse points is just a fancy name for symbolic links, and these have been around in Windows since the days of at least XP and Server 2003.
sted Posted July 4, 2019 Posted July 4, 2019 I don't see how OneDrive could work at all with mandatory profiles. once loaded onto a machine they can be modified (or nothing would work you just cant save those changes back to the profile) so onedrive installs into appdata as normal and when windows trys to remove the profile it cant fully so leaves crud behind
mavhc Posted July 4, 2019 Posted July 4, 2019 Ah, I see, Reparse points are basically plugins for ntfs, to add new features, onedrive adds "Reparse Tag Value : 0x9000701a" 'CLOUD_ROOT_ON_DEMAND' So need to code something that can delete reparse points. The onedrive files probably aren't actually in the OneDrive "folder", even if they're cached.
mavhc Posted July 4, 2019 Posted July 4, 2019 once loaded onto a machine they can be modified (or nothing would work you just cant save those changes back to the profile) so onedrive installs into appdata as normal and when windows tries to remove the profile it can't fully so leaves crud behind Seems like you'd be better off with a webdav mapper or something. Pity MS never updated MS Windows to work with MS OneDrive. That's unfree software for you.
sted Posted July 4, 2019 Posted July 4, 2019 Seems like you'd be better off with a webdav mapper or something. Pity MS never updated MS Windows to work with MS OneDrive. That's unfree software for you. they have just changed who its aimed at. it not aimed at locked down systems anymore its aimed at more 1:1 byod light touch management now so the people they are aiming it have have their own device possibly not even company owned and just do stuff rather than having shared pcs
mavhc Posted July 4, 2019 Posted July 4, 2019 Makes sense, PCs are cheaper now, not like Education makes them any money, was always a getting people hooked thing. Switch to LibreOffice, then switch to Linux too.
sted Posted July 4, 2019 Posted July 4, 2019 Makes sense, PCs are cheaper now, not like Education makes them any money, was always a getting people hooked thing. Switch to LibreOffice, then switch to Linux too. honestly at that point switch to a chromebook you still get linux if you need it and most people wont
KevinB Posted July 4, 2019 Posted July 4, 2019 Seems like you'd be better off with a webdav mapper or something. Ugh! Performance of those things is hideous and WebDAV is an old and no longer developed tech. We tried a commercial product based on it initially and we simply couldn't cope with the hassles it created.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now