maciejrebisz.com

IT

How to provisioned Company Portal with MDT image deployment – Mobile-First Cloud-First

maximios May 11, 2021

With AzureAD joined and Intune MDM controlled Windows 10 devices I like to provide the user access to the company portal.

If this is a 1:1 device I will just deploy the Company Portal App with intune to the user.

But in a scenario where there is many users on 1 device – we need to provisioned the Company Portal App as part of a image. In this blogpost I will show how it is done with MDT.

Before we get started there is some prerequisite that need to be in place.

We need a Azure AD that allows us to signup for Microsoft Windows Store for Business.

The Windows Store for Business needs to be configured.

First login in to the Windows Store for Business with a global admin.

Search for Company Portal.

Select the Company Portal App

Then get the APP – if you like in my case already own the app then select Offline and manage

Then Download the App

Generate the Unencoded licens

Save the .xml file

Now you have the Company Portal App file and license file ready to create a deployment packages in the deployment system – in this case MDT.

Creating the Company Portal as an App in the deployment system – in this case MDT.

I start by creating a folder with the App name: Microsoft.CompanyPortal

In the folder I create a install script file and a source folder

In the source folder put the previous downloaded app and license file

The install script can look like this – there is many ways to create a install script to provisioned and Appx packaged.

Function Get-ScriptPath

{

$Invocation = (Get-Variable MyInvocation -Scope 1).Value

Split-Path $Invocation.MyCommand.Path

}

$AppFolder = Join-Path -Path (Get-ScriptPath) -ChildPath “Source”

If (Test-Path -Path $AppFolder)

{

$AppFile = (Get-ChildItem -Path $AppFolder -Include “*appx*” -Recurse).FullName

If ($AppFile -eq $null)

{

Write-Host “Source files not found. Skipping installation.”

}

Else

{

$Licensefile = (Get-ChildItem -Path $AppFolder -Include “*xml” -Recurse).FullName

Add-AppxProvisionedPackage -Online -PackagePath $AppFile -LicensePath $Licensefile

}

}

Else

{

Write-Host “Source files not found. Skipping installation.”

}

Now we are ready to create the Application in MDT

Select New Application in the Deployment Workbench

Click Next

  1. Enter a Publisher (Optional)
  2. Enter a Application name “Microsoft.CompanyPortal”
  3. Enter Version (Optional)
  4. Click Next

Browse for the previous created folder with the Company Portal

Click Next

Click Next

Enter the Command line installation string:

%SYSTEMROOT%System32WindowsPowerShellv1.0powershell.exe  -NoProfile -ExecutionPolicy bypass -File “INSTALL-MicrosoftCompanyPortal.ps1”

Click Next

Click Next

Click Finish

Now go into the MDT Task Sequence and application just created

Now deploy Sequence to a Device

When the OS deployment is finished then we can make control to see if the Company Portal is provisioned in the Windows 10 OS by running this command:

Get-AppxProvisionedPackage -Online

The Company Portal will now be installed on any new user that login on the device.

Related Posts

IT /

Intune – Windows device enrollment restrictions – Cloud First

IT /

How to add “hidden” Windows UWP to Windows Store for Business – Cloud First

IT /

Office 2016 Active Directory-Based activation – Cloud First

‹ How to upgrade SCCM 2012 R2 to SCCM 2012 R2 Sp1 – Mobile-First Cloud-First › Conditional Access to Microsoft Dynamics CRM Online – Mobile-First Cloud-First

Recent Posts

  • Intune – Windows device enrollment restrictions – Cloud First
  • How to add “hidden” Windows UWP to Windows Store for Business – Cloud First
  • Office 2016 Active Directory-Based activation – Cloud First
  • How to deploy Windows Local Experience Packs with Intune – Cloud First
  • Conditional Access for Outlook Web Access (OWA) – Cloud First

Recent Comments

No comments to show.

Archives

  • November 2025
  • October 2025
  • August 2025
  • July 2025
  • June 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • November 2024
  • September 2024
  • July 2024
  • June 2024
  • March 2024
  • December 2023
  • August 2023
  • June 2023
  • March 2023
  • February 2023
  • December 2022
  • September 2022
  • August 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • January 2022
  • December 2021
  • October 2021
  • September 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • February 2020
  • January 2020
  • December 2019
  • October 2019
  • September 2019
  • June 2019
  • April 2019
  • March 2019
  • February 2019
  • March 2018
  • February 2018
  • December 2017
  • October 2017
  • August 2017

Categories

  • IT

Back to Top

© maciejrebisz.com 2026
Powered by WordPress • Themify WordPress Themes