@@ -19,8 +19,7 @@ $Script:Location = "$Env:ProgramData\WingetIntunePackagerTemp"
1919# Load assemblies
2020Add-Type - AssemblyName System.Windows.Forms, System.Drawing, PresentationFramework
2121# Set IntuneWin32App Required Version
22- $IntuneWin32AppVers = " 1.3.6"
23-
22+ $IntuneWin32AppVers = " 1.4.4"
2423
2524# ## FUNCTIONS ###
2625
@@ -77,7 +76,11 @@ function Start-InstallGUI {
7776 <Image x:Name="AppIcon" Height="90" Width="90" HorizontalAlignment="Center" VerticalAlignment="Center"/>
7877 </Grid>
7978 <Button x:Name="ConnectButton" Content="Connect" HorizontalAlignment="Right" VerticalAlignment="Top" Width="90" Height="24" Margin="0,330,10,0"/>
80- <TextBlock x:Name="ConnectionStatusTextBlock" HorizontalAlignment="Left" Margin="10,354,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="Not connected." Foreground="Red"/>
79+ <TextBlock x:Name="ConnectionStatusTextBlock" HorizontalAlignment="Left" Margin="614,359,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="Not connected." Foreground="Red"/>
80+ <Label x:Name="IntuneClientID" Content="Intune Client ID:" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10,354,0,0"/>
81+ <TextBox x:Name="IntuneClientIDTextbox" VerticalAlignment="Top" Margin="10,380,0,0" Height="24" VerticalContentAlignment="Center" Width="280" HorizontalAlignment="Left"/>
82+ <TextBox x:Name="IntuneRedirectUriTextbox" VerticalAlignment="Top" Margin="300,380,0,0" Height="24" VerticalContentAlignment="Center" Width="280" HorizontalAlignment="Left"/>
83+ <Label x:Name="IntuneRedirectUri" Content="Intune Redirect Uri:" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="5,357,0,0"/>
8184
8285 </Grid>
8386</Window>
@@ -186,7 +189,7 @@ function Start-InstallGUI {
186189
187190 $ConnectButtonAction = {
188191 Start-PopUp " Connecting..."
189- $ConnectionStatus = Connect-MSIntuneGraph - TenantID $IntuneTenantIDTextbox.Text
192+ $ConnectionStatus = Connect-MSIntuneGraph - TenantID $IntuneTenantIDTextbox.Text - ClientID $IntuneClientIDTextbox .Text - RedirectUri $IntuneRedirectUriTextbox .Text
190193 if ($ConnectionStatus.ExpiresOn ) {
191194 $ConnectionStatusTextBlock.Foreground = " Green"
192195 $ConnectionStatusTextBlock.Text = " Connection expires on: $ ( $ConnectionStatus.ExpiresOn.ToLocalTime ()) "
@@ -512,7 +515,7 @@ function Invoke-IntunePackage ($Win32AppArgs) {
512515 }
513516
514517 # Create requirement rule for all platforms and Windows 10 2004
515- $RequirementRule = New-IntuneWin32AppRequirementRule - Architecture " All" - MinimumSupportedWindowsRelease " 2004 "
518+ $RequirementRule = New-IntuneWin32AppRequirementRule - Architecture " All" - MinimumSupportedWindowsRelease " W10_1607 "
516519
517520 # Create MSI detection rule
518521 $DetectionRule = New-IntuneWin32AppDetectionRuleScript - ScriptFile " $DetectionScriptPath \$DetectionScriptFile "
0 commit comments