 {"id":37524,"date":"2021-12-02T10:15:26","date_gmt":"2021-12-02T17:15:26","guid":{"rendered":"https:\/\/moderneuc.com\/?p=37524"},"modified":"2026-02-18T13:02:18","modified_gmt":"2026-02-18T20:02:18","slug":"restrict-saving-files-to-local-drives","status":"publish","type":"post","link":"https:\/\/jorgep.com\/blog\/restrict-saving-files-to-local-drives\/","title":{"rendered":"Restrict Saving Files To Local Drives"},"content":{"rendered":"\n<p>A good question popped  this week  in my email.     How do I prevent users from saving files to local drives, while still allow them to save to OneDrive  folders?<\/p>\n\n\n\n<p>I think a lot of organizations would like ( or are doing it already) to do this, but the answer may have some complexity to it that really depends on what you want to do. <\/p>\n\n\n\n<p>First and foremost, I had to explain that   OneDrive, and most of the other common cloud-based file storage systems, still store data locally and then sync the data to the cloud.    With Windows 10 version 1709 and beyond,  OneDrive  has the <a rel=\"noreferrer noopener\" href=\"https:\/\/support.microsoft.com\/en-us\/office\/save-disk-space-with-onedrive-files-on-demand-for-windows-10-0e6860d3-d9f3-4971-b321-7092438fb38e\" data-type=\"URL\" data-id=\"https:\/\/support.microsoft.com\/en-us\/office\/save-disk-space-with-onedrive-files-on-demand-for-windows-10-0e6860d3-d9f3-4971-b321-7092438fb38e\" target=\"_blank\">Files on Demand<\/a> option which allows to display cloud only  files in File Explorer but if you click on it to use it or view it , it will be downloaded to the local device temporarily. <\/p>\n\n\n\n<p>Then the second piece of the conversation involves explaining completely locking access to local drives might not be a great idea, as many applications use temporary files locally .<\/p>\n\n\n\n<p>I then proceed to explain that if the purpose is to protect your data, then a better way is to implement <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/security\/information-protection\/windows-information-protection\/protect-enterprise-data-using-wip\" data-type=\"URL\" data-id=\"https:\/\/docs.microsoft.com\/en-us\/windows\/security\/information-protection\/windows-information-protection\/protect-enterprise-data-using-wip\" target=\"_blank\">Windows Information Protection<\/a> which allows you to protect the files  and  automatically assign polices to files ( attached classification to them as corporate files) <\/p>\n\n\n\n<p>Having said this,   below is  how you will lock everything, although I would allow  a few exceptions ( c:\\temp or c:\\&lt;user&gt;\\UserData )  for those times in which users need this  and make it clear these files are not backed up.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">OneDrive Settings<\/h3>\n\n\n\n<p>OneDrive is fully integrated into Windows 10, and therefore you can set&nbsp;OneDrive&nbsp;as the default save location for all data or just specific files.<\/p>\n\n\n\n<p>You can find information on OneDrive settings on <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/onedrive\/plan-onedrive-enterprise\" data-type=\"URL\" data-id=\"https:\/\/docs.microsoft.com\/en-us\/onedrive\/plan-onedrive-enterprise\" target=\"_blank\">Microsoft OneDrive Documentation<\/a>   including how to do this with Microsoft Intune  using Administrative templates.    (   <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/onedrive\/one-drive-quickstart-small-business#manage-onedrive\" data-type=\"URL\" data-id=\"https:\/\/docs.microsoft.com\/en-us\/onedrive\/one-drive-quickstart-small-business#manage-onedrive\" target=\"_blank\">Manage OneDrive Settings<\/a>  and <a href=\"https:\/\/docs.microsoft.com\/en-us\/onedrive\/use-group-policy\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Use OneDrive policies to control sync settings <\/a> )<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Group Policy  to Block a device <\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>You can create a  Group policy object and configure the settings to block \/ restrict access to one of several disks.  <\/li><li>You can then  link that GPO into the OU those devices are placed in.  <\/li><\/ul>\n\n\n\n<p>Good source: <a href=\"https:\/\/docs.microsoft.com\/en-us\/answers\/questions\/129425\/restrict-users-to-store-data-in-local-drive-deskto.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Restrict Users to Store Data in Local Drive, Desktop, Document, Downloads Etc &#8211; Microsoft Q&amp;A<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Additional Resources:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/use-onedrive-and-storage-sense-in-windows-10-to-manage-disk-space-de5faa9a-6108-4be1-87a6-d90688d08a48\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Use OneDrive and Storage Sense in Windows 10 to manage disk space (microsoft.com)<\/a><\/li><li><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/files-save-to-onedrive-by-default-in-windows-10-33da0077-770c-4bda-b61e-8c8e8ca70ac7\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Files save to OneDrive by default in Windows 10 (microsoft.com)<\/a><\/li><li><a href=\"https:\/\/techcommunity.microsoft.com\/t5\/onedrive-for-business\/admin-control-to-force-quot-always-in-the-cloud-quot\/td-p\/117821\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Admin control to force &#8220;always in the cloud&#8221; ? &#8211; Microsoft Tech Community<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>Hope this helps ! &#8212; Send your ideas \/ suggestions \/  additions via Twitter to:  <a href=\"https:\/\/twitter.com\/moderneuc\" data-type=\"URL\" data-id=\"https:\/\/twitter.com\/moderneuc\" target=\"_blank\" rel=\"noreferrer noopener\">@moderneuc <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A good question popped this week in my email. How do I prevent users from saving files to local drives, while still allow them to save to OneDrive folders? I think a lot of organizations would like ( or are doing it already) to do this, but the answer may have some complexity to it&#8230;<\/p>\n","protected":false},"author":2,"featured_media":368790,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","ngg_post_thumbnail":0,"episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[681,441],"tags":[700,737,742,749,762,769,326,430],"class_list":["post-37524","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-moderneuc2","category-tech-talk","tag-cybersecurity","tag-modern-device-management","tag-moderneuc1","tag-onedrive","tag-security","tag-uem","tag-windows","tag-windows-10"],"taxonomy_info":{"category":[{"value":681,"label":"ModernEUC"},{"value":441,"label":"Tech Talk"}],"post_tag":[{"value":700,"label":"Cybersecurity"},{"value":737,"label":"Modern Device Management"},{"value":742,"label":"ModernEUC"},{"value":749,"label":"OneDrive"},{"value":762,"label":"Security"},{"value":769,"label":"UEM"},{"value":326,"label":"Windows"},{"value":430,"label":"Windows 10"}]},"featured_image_src_large":["https:\/\/jorgep.com\/blog\/wp-content\/uploads\/nolocalfiles.png",500,250,false],"author_info":{"display_name":"Jorge Pereira","author_link":"https:\/\/jorgep.com\/blog\/author\/jorge\/"},"comment_info":0,"category_info":[{"term_id":681,"name":"ModernEUC","slug":"moderneuc2","term_group":0,"term_taxonomy_id":691,"taxonomy":"category","description":"","parent":0,"count":261,"filter":"raw","cat_ID":681,"category_count":261,"category_description":"","cat_name":"ModernEUC","category_nicename":"moderneuc2","category_parent":0},{"term_id":441,"name":"Tech Talk","slug":"tech-talk","term_group":0,"term_taxonomy_id":451,"taxonomy":"category","description":"","parent":0,"count":672,"filter":"raw","cat_ID":441,"category_count":672,"category_description":"","cat_name":"Tech Talk","category_nicename":"tech-talk","category_parent":0}],"tag_info":[{"term_id":700,"name":"Cybersecurity","slug":"cybersecurity","term_group":0,"term_taxonomy_id":710,"taxonomy":"post_tag","description":"","parent":0,"count":29,"filter":"raw"},{"term_id":737,"name":"Modern Device Management","slug":"modern-device-management","term_group":0,"term_taxonomy_id":747,"taxonomy":"post_tag","description":"","parent":0,"count":23,"filter":"raw"},{"term_id":742,"name":"ModernEUC","slug":"moderneuc1","term_group":0,"term_taxonomy_id":752,"taxonomy":"post_tag","description":"","parent":0,"count":284,"filter":"raw"},{"term_id":749,"name":"OneDrive","slug":"onedrive","term_group":0,"term_taxonomy_id":759,"taxonomy":"post_tag","description":"","parent":0,"count":5,"filter":"raw"},{"term_id":762,"name":"Security","slug":"security","term_group":0,"term_taxonomy_id":772,"taxonomy":"post_tag","description":"","parent":0,"count":11,"filter":"raw"},{"term_id":769,"name":"UEM","slug":"uem","term_group":0,"term_taxonomy_id":779,"taxonomy":"post_tag","description":"","parent":0,"count":47,"filter":"raw"},{"term_id":326,"name":"Windows","slug":"windows","term_group":0,"term_taxonomy_id":336,"taxonomy":"post_tag","description":"","parent":0,"count":90,"filter":"raw"},{"term_id":430,"name":"Windows 10","slug":"windows-10","term_group":0,"term_taxonomy_id":440,"taxonomy":"post_tag","description":"","parent":0,"count":78,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/posts\/37524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/comments?post=37524"}],"version-history":[{"count":1,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/posts\/37524\/revisions"}],"predecessor-version":[{"id":518789,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/posts\/37524\/revisions\/518789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/media\/368790"}],"wp:attachment":[{"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/media?parent=37524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/categories?post=37524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/tags?post=37524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}