<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Multiple IntuneWinFiles creation at once]]></title><description><![CDATA[Multiple IntuneWinFiles creation at once]]></description><link>https://multiple-intunewinfiles-creation-at-once.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sun, 21 Jun 2026 07:59:10 GMT</lastBuildDate><atom:link href="https://multiple-intunewinfiles-creation-at-once.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Multiple IntuneWinFiles Creation at Once]]></title><description><![CDATA[IntuneWin files creation for applications
Title/Script Name

Script Name: IntuneWinFiles.ps1

Version: 1.0

Author: Preethi B M

Last Updated: 30-March-2025

Purpose: This script is designed to efficiently generate multiple ‘.intunewin’ files with a ...]]></description><link>https://multiple-intunewinfiles-creation-at-once.hashnode.dev/multiple-intunewinfiles-creation-at-once</link><guid isPermaLink="true">https://multiple-intunewinfiles-creation-at-once.hashnode.dev/multiple-intunewinfiles-creation-at-once</guid><category><![CDATA[Intunewin]]></category><category><![CDATA[ApplicationAutomation]]></category><category><![CDATA[IntuneAutomation]]></category><category><![CDATA[intune]]></category><category><![CDATA[Script]]></category><category><![CDATA[Powershell]]></category><dc:creator><![CDATA[Preethi B M]]></dc:creator><pubDate>Sun, 30 Mar 2025 16:23:05 GMT</pubDate><content:encoded><![CDATA[<p><strong>IntuneWin files creation for applications</strong></p>
<p><strong>Title/Script Name</strong></p>
<ul>
<li><p><strong>Script Name</strong>: <a target="_blank" href="http://IntuneWinFiles.ps">IntuneWinFiles.ps</a>1</p>
</li>
<li><p><strong>Version</strong>: 1.0</p>
</li>
<li><p><strong>Author</strong>: Preethi B M</p>
</li>
<li><p><strong>Last Updated</strong>: 30-March-2025</p>
</li>
<li><p><strong>Purpose</strong>: This script is designed to efficiently generate multiple ‘.intunewin’ files with a single click.</p>
</li>
</ul>
<hr />
<p><strong>Overview</strong></p>
<p>This script will generate multiple .intunewin files with a single click. Simply press Enter, and the script will create the desired number of .intunewin files based on your specifications.</p>
<hr />
<p><strong>Prerequisites</strong></p>
<p>List any requirements needed before running the script, such as:</p>
<ul>
<li><p>PowerShell must be installed on Machine.</p>
</li>
<li><p>Ensure that <strong>IntuneWinAppUtil.exe</strong> is located in the same directory as this script.(You can download this from Microsoft site/GitHub)</p>
</li>
<li><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1743518837354/5e608863-8355-43c1-bca6-10c00a69d8a3.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>A 'Sources' folder should be created, containing individual application folders as per your requirements. Each application folder should be properly named according to the folder structure.</p>
<ul>
<li><p>Sources</p>
<ul>
<li><p>Application Name 1</p>
</li>
<li><p>Application Name 2</p>
</li>
<li><p>Application Name 3</p>
</li>
</ul>
</li>
<li><p>Example:</p>
</li>
<li><p>Sources</p>
<ul>
<li><p>Igor Pavlov 7-Zip 24.07 EN</p>
</li>
<li><p>Google Chrome 133.35 EN</p>
</li>
<li><p>Adobe Reader DC 2025 EN</p>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1743518607997/c3bfc5bf-7cc1-4bd3-9306-73c0e9e5522e.png" alt class="image--center mx-auto" /></p>
<hr />
<p><strong>Parameters</strong></p>
<p>No parameters are required for this.</p>
<hr />
<p><strong>Script Description</strong></p>
<p>Provide a detailed explanation of the script’s logic, including:</p>
<p>First, the script will create an 'Output' folder and a 'Logs' folder.</p>
<p>The .intunewin files will be generated and stored in the 'Output' folder.</p>
<hr />
<p><strong>Example Usage</strong></p>
<p>Press the Windows key or click the Start button on the taskbar.</p>
<p>Type PowerShell in the search bar.</p>
<p>From the search results, right-click Windows PowerShell and select Run as Administrator.</p>
<p>If prompted by the User Account Control (UAC), click Yes to grant administrative privileges.</p>
<p>Once PowerShell is running with elevated privileges, you may proceed by pasting the script into the PowerShell window and pressing <strong>Enter</strong> to execute it.</p>
<hr />
<p><strong>Error Handling and Logging</strong></p>
<p>Errors encountered during script execution can be monitored in the <strong>Logs</strong> folder, which is located within the script's directory.</p>
<hr />
<p><strong>Dependencies</strong></p>
<p>The IntuneWinAppUtil.exe must be located in the same directory as the script.</p>
<p>The Source Folder should also be placed in the same directory as the script.</p>
<hr />
<p><strong>Testing and Validation</strong></p>
<p><strong>Test Case 1</strong>:</p>
<p>When the script is executed, .IntuneWin files will be created within the Output Folder.</p>
<p>The Log File can be found inside the Logs Folder.</p>
<p><strong>Folder Structure:</strong></p>
<ul>
<li><ul>
<li><p>Outputs</p>
<ul>
<li><p>Igor Pavlov 7-Zip 24.07 EN</p>
</li>
<li><p>Google Chrome 133.35 EN</p>
</li>
<li><p>Adobe Reader DC 2025 EN</p>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1743518543324/4312620b-add6-46f7-8862-c5f7aa347bde.png" alt class="image--center mx-auto" /></p>
<p>IntuneWin files present inside each folder, for example,</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1743518560523/2d4fbd5d-70f9-4b84-ba7f-cfd5b32af866.png" alt class="image--center mx-auto" /></p>
<ul>
<li><ul>
<li><p>Logs</p>
<ul>
<li>IntuneWinFiles.log</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1743518518243/64205712-f4e8-4bf6-8a97-1769e632d2f4.png" alt class="image--center mx-auto" /></p>
<hr />
<p><strong>Conclusion</strong></p>
<p>This PowerShell script automates the creation of multiple <strong>IntuneWin</strong> files for the packaged applications, thereby reducing manual effort and minimizing the risk of errors.</p>
<hr />
<p>Code</p>
<p>&lt;#</p>
<p>    .SYNOPSIS</p>
<p>        This is a Script which will help us to Create multiple IntuneWinFiles</p>
<p>    .DESCRIPTION</p>
<p>        Creating multiple intunewin Files</p>
<p>    .PARAMETER FileName</p>
<p>        No Parameters required</p>
<p>    .NOTES</p>
<p>        Author: Preethi B M</p>
<p>    #&gt;</p>
<p>$ErrorActionPreference = "SilentlyContinue"</p>
<p>$SourceLocation="$PSScriptRoot\Sources"</p>
<p>$IntuneWinAppUtilLocation = "$PSScriptRoot\IntuneWinAppUtil.exe"</p>
<p>$DateTime = (Get-Date -Format "MM/dd/yyyy HH:mm")</p>
<p>$Log_Location = "$PSScriptRoot\Logs\IntuneWinFiles.log"</p>
<p>if ((Test-Path -Path "$PSScriptRoot\Outputs") -eq $false)</p>
<p>{</p>
<p>    New-Item -Path "$PSScriptRoot" -Name "Outputs" -ItemType Directory -Force</p>
<p>    Add-Content -Path $Log_Location -Value "[$DateTime :: Outputs Sourceer is created]"</p>
<p>}</p>
<p>Else {</p>
<p>    Remove-Item -Path "$PSScriptRoot\Outputs" -Force -Recurse</p>
<p>    New-Item -Path "$PSScriptRoot" -Name "Outputs" -ItemType Directory -Force</p>
<p>    Add-Content -Path $Log_Location -Value "[$DateTime :: Outputs Sourceer is removed and created]"</p>
<p>}</p>
<p>if ((Test-Path -Path "$PSScriptRoot\Logs") -eq $false)</p>
<p>{</p>
<p>    New-Item -Path "$PSScriptRoot" -Name "Logs" -ItemType Directory -Force</p>
<p>    Add-Content -Path $Log_Location -Value "[$DateTime :: Logs Sourceer is created]"</p>
<p>}</p>
<p>$OutputsLocation = "$PSScriptRoot\Outputs"</p>
<p>$SourcesDetail = (Get-ChildItem -Path $SourceLocation -Directory).FullName</p>
<p>foreach ($Source in $SourcesDetail)</p>
<p>{</p>
<p>   Add-Content -Path $Log_Location -Value "*******************************************************"</p>
<p>   $value = (Get-ChildItem -Path $Source -Attributes !Directory | Select-Object -First 1).FullName</p>
<p>   if ($value.Count -eq "0")</p>
<p>   {</p>
<p>       Add-Content -Path $Log_Location -Value "[$DateTime :: $Source contains 0 files inside, Can not proceed for IntuneWin file creation]"</p>
<p>   }</p>
<p>   Else {</p>
<p>   $OutputsFile = $Source | Split-Path -Leaf</p>
<p>   New-Item -Path $OutputsLocation -Name $OutputsFile -ItemType Directory -Force</p>
<p>   Add-Content -Path $Log_Location -Value "[$DateTime :: $OutputsFile is created]"</p>
<p>   Start-Process -FilePath $IntuneWinAppUtilLocation -ArgumentList "-c "$Source" -s "$value" -o "$OutputsLocation\$OutputsFile"" -Wait</p>
<p>   if ((Get-ChildItem -Path "$OutputsLocation\$OutputsFile").count -ne $null)</p>
<p>   {</p>
<p>       Add-Content -Path $Log_Location -Value "[$DateTime :: IntuneWin file is created under $OutputsLocation\$OutputsFile]"</p>
<p>   }</p>
<p>   Else {</p>
<p>   Add-Content -Path $Log_Location -Value "[$DateTime :: IntuneWin file is failed for $OutputsLocation\$OutputsFile]"</p>
<p>   }</p>
<p>}</p>
<p>}</p>
<hr />
]]></content:encoded></item></channel></rss>