Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions Device Configuration/Import-IntuneDeviceConfigurationProfile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Import device configuration profiles for Windows, iOS/iPadOS, AndroidEnterprise, macOS platforms stored as JSON files into a specific Intune tenant.

.PARAMETER TenantName
Specify the tenant name, e.g. domain.onmicrosoft.com.
Specify the tenant name, e.g. mhnnetwork.org.

.PARAMETER Platform
Specify the given platforms that device configuration profiles should be imported for.
Expand All @@ -24,26 +24,20 @@
Set the prompt behavior when acquiring a token.

.EXAMPLE
# Import all device configuration profiles for all platforms from 'C:\Temp\Intune' into a tenant named 'domain.onmicrosoft.com':
.\Import-IntuneDeviceConfigurationProfile.ps1 -TenantName "domain.onmicrosoft.com" -Platform "Windows", "iOS", "AndroidEnterprise", "macOS" -Path C:\Temp\Intune -Prefix "CompanyName" -Verbose
# Import all device configuration profiles for all platforms from 'C:\Temp\Intune' into a tenant named 'mhnnetwork.org':
.\Import-IntuneDeviceConfigurationProfile.ps1 -TenantName "mhnnetwork.org" -Platform "Windows", "iOS", "AndroidEnterprise", "macOS" -Path C:\Temp\Intune -Prefix "CompanyName" -Verbose

.NOTES
FileName: Import-IntuneDeviceConfigurationProfile.ps1
Author: Nickolaj Andersen
Contact: @NickolajA
Created: 2019-10-04
Updated: 2019-10-04

Version history:
1.0.0 - (2019-10-04) Script created
Author: Travis Hudall

Required modules:
AzureAD (Install-Module -Name AzureAD)
PSIntuneAuth (Install-Module -Name PSIntuneAuth)
#>
[CmdletBinding(SupportsShouldProcess=$true)]
param(
[parameter(Mandatory = $true, HelpMessage = "Specify the tenant name, e.g. domain.onmicrosoft.com.")]
[parameter(Mandatory = $true, HelpMessage = "Specify the tenant name, e.g. mhnnetwork.org.")]
[ValidateNotNullOrEmpty()]
[string]$TenantName,

Expand Down
Loading