{"id":3939,"date":"2019-02-13T09:14:07","date_gmt":"2019-02-13T09:14:07","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=3939"},"modified":"2024-08-06T00:20:35","modified_gmt":"2024-08-06T00:20:35","slug":"copy-file-to-workstations-with-windows-intune","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/intune\/copy-file-to-workstations-with-windows-intune","title":{"rendered":"Copy file to workstations with Windows Intune"},"content":{"rendered":"\n<p><a href=\"https:\/\/pariswells.com\/blog\/azure\/intune-copy-file-using-powershell-to-the-computer-from-an-azure-blob-location\">**If you want to deploy a file from an Azure Blob Location for Files that need changing frequently see here **<\/a><\/p>\n\n\n\n<p>Seems one of the only ways to copy files to PC&#8217;s in Intune seems to be to create an MSI file to deploy them which requires a MSI packager ( Laboursome) . However, this can also be done using&nbsp;<strong>Windows app (Win32)&nbsp;<\/strong>container<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"577\" height=\"246\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/02\/img_5c63de39cfb8c.png\" alt=\"\" class=\"wp-image-3940 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/02\/img_5c63de39cfb8c.png 577w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/02\/img_5c63de39cfb8c-300x128.png 300w\" sizes=\"auto, (max-width: 577px) 100vw, 577px\" \/><\/figure>\n\n\n\n<p>Copy.bat File<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">rem Copy Files\ncopy off.ini c:\\Windows\\System32\\off.ini\nrobocopy . \"C:\\Windows\\Files\" \/s \/e\n\nrem Set Permissions\nicacls \"c:\\Windows\\System32\\BSPECIAL.DLL\" \/grant Everyone:M\nicacls \"c:\\Windows\\SysWOW64\\BSPECIAL.DLL\" \/grant Everyone:<\/code><\/pre>\n\n\n\n<p>You will need to make sure the folder exists before you copy files to it such as below , or you can use the XCOPY function instead of copy<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">if not exist C:\\Temp\\Test \nmkdir if not exist C:\\Temp\\Test <\/code><\/pre>\n\n\n\n<p>del.bat file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">del c:\\Windows\\System32\\off.ini\nrd \/s\/q \"C:\\Windows\\Files\\\"<\/code><\/pre>\n\n\n\n<p>Next run the&nbsp;<a href=\"https:\/\/github.com\/Microsoft\/Intune-Win32-App-Packaging-Tool\">IntuneWinAppUtil.exe<\/a>&nbsp;File<\/p>\n\n\n\n<p>c:\\TempPath\\Intune-Win32-App-Packaging-Tool-master&gt;IntuneWinAppUtil.exe<br>Please specify the source folder:&nbsp;<strong>F:\\Config Files<\/strong><br>Please specify the setup file:&nbsp;<strong>copy.bat<\/strong><br>Please specify the output folder:&nbsp;<strong>C:\\TempPath\\BuildsoftAppps<\/strong><\/p>\n\n\n\n<p>Create a new&nbsp;<strong>Windows app (Win32)&nbsp;<\/strong>App in Intune , upload the copy.intunewin and use the commands below<\/p>\n\n\n\n<p id=\"BiiThmT\"><img decoding=\"async\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/02\/img_5c63df300ac7d.png\" alt=\"\">Detection Rules<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"292\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/02\/img_5c63df67225b3.png\" alt=\"\" class=\"wp-image-3942 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/02\/img_5c63df67225b3.png 721w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/02\/img_5c63df67225b3-300x121.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>**If you want to deploy a file from an Azure Blob Location for Files that need changing frequently see here ** Seems one of the only ways [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2836],"tags":[2843,2839,2840,2841,2837,2844,2842],"class_list":["post-3939","post","type-post","status-publish","format-standard","hentry","category-intune","tag-copy-file","tag-copy-files","tag-deploy-files","tag-https-github-com-microsoft-intune-win32-app-packaging-tool","tag-intune","tag-move-file","tag-windows-app-win32"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=3939"}],"version-history":[{"count":6,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3939\/revisions"}],"predecessor-version":[{"id":8189,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3939\/revisions\/8189"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=3939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=3939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=3939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}