Export & import Intune tenant settings (Windows | Configuration profiles)

Vardhan Joshi 56 Reputation points
2023-04-26T21:25:23.5933333+00:00

I have tried the following but seems like not working between Azure Tenants?

[https://learn.microsoft.com/en-us/answers/questions/1002670/export-single-configuration-profile-(settings-cata](https://learn.microsoft.com/en-us/answers/questions/1002670/export-single-configuration-profile-(settings-cata)

During the import PowerShell says policy/file not exist.

I am trying to copy the profiles from one tenancy to other.

Microsoft Intune Security
Microsoft Intune Security
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
430 questions
Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,920 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,189 questions
{count} votes

Accepted answer
  1. Crystal-MSFT 49,346 Reputation points Microsoft Vendor
    2023-04-27T02:06:21.2666667+00:00

    @Vardhankumar Joshi, Thanks for posting in Q&A.

    Based on my testing, I can export Setting Catalog profile from one tenant to another tenant. Here are the steps I tried:

    1. Export Setting Catalog profile to one folder.

    User's image

    User's image

    1. Run the Import PowerShell script and login with the global administrator in another tenant. Import one Setting Catalog json file and it success. (I have put the export files to location C:\test\settingcatalog)

    User's image

    From the error message, it seems the file is not existing. Please ensure the path to a JSON file to import data from is correct and the file is there. if still get error, please get a screen shot of the error to know it better.

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Manan Teraiya 0 Reputation points
    2024-01-25T17:40:44.71+00:00

    Getting below error while run the script..

    Checking for AzureAD module...
    Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///C:\Program 
    Files\WindowsPowerShell\Modules\AzureAD\2.0.2.180\Microsoft.IdentityModel.Clients.ActiveDirectory.dll' or one of its dependencies. The system cannot find the file specified."
    At C:\Windows\system32\powershell-intune-samples-master\SettingsCatalog\SettingsCatalog_Export.ps1:87 char:1
    + [System.Reflection.Assembly]::LoadFrom($adal) | Out-Null
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : FileNotFoundException
     
    Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///C:\Program 
    Files\WindowsPowerShell\Modules\AzureAD\2.0.2.180\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll' or one of its dependencies. The system cannot find the file 
    specified."
    At C:\Windows\system32\powershell-intune-samples-master\SettingsCatalog\SettingsCatalog_Export.ps1:89 char:1
    + [System.Reflection.Assembly]::LoadFrom($adalforms) | Out-Null
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : FileNotFoundException
     
    Cannot find type [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext]: verify that the assembly containing this type is loaded.
    
    

  3. SheWolf 0 Reputation points Microsoft Employee
    2024-10-29T14:58:24.3966667+00:00

    The issue is that the AzureAD module has been deprecated. Need to move to the connect-AZAccount for graph calls.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.