aaronparker / intune

Scripts and tools for use with Microsoft Intune
https://stealthpuppy.com
MIT License
256 stars 53 forks source link

Redirect Downloads Folder? #4

Open wumbowarrior opened 3 years ago

wumbowarrior commented 3 years ago

When I use this script to redirect my downloads folder, it successfully sets my oneshare folder as the new location for my downloads folder... However downloads are still going to C:\user\\downloads. Is there no way to fix this behavior?

aaronparker commented 3 years ago

In which application? Check your browser settings

wumbowarrior commented 3 years ago

Actually, looking at this, I'm not sure why I said it was working. I think I had modified the script in order to work, but it won't work in production because of user context. I took the one published in your github and tried it just as is, and I get a ton of failures, and no data is copied. I've attached the log below. We are just trying to redirect the downloads folder to OneDrive. Intune supports KFM redirection through policy now, but it only supports Desktop, Documents, and Pictures. To my relief I discovered someone had already done the work, but it doesn't seem to be working for me?

It appears to me that, while the Downloads folder guid has been defined, it is not present in the "validateset" property of the "knownFolder" parameter. I'm also not able to manually add it to that set, as I'm not sure what it's checking.

-132575385749052449.log

wumbowarrior commented 3 years ago

Also the scheduled task is not running silently... I don't think there is a way for the scheduled task to run silently without running as system