Intune: Import Administrative Template

Import administrative templates in Intune.

  1. Surf to: Devices – Microsoft Endpoint Manager admin center
  2. Import
  3. Select the admx and corresponding adml file
Import administrative templates in Intune. - import admx

Error: “The upload of this ADMX file has failed. To continue, you will need to delete this upload, address the action in the error details and try again.”

Details: ADMX file referenced not found NamespaceMissing:Microsoft.Polcies.Windows. Please upload first

Import administrative templates in Intune. - error upload
  1. Download the latest Administrative Templates (
  2. Open the msi file (for example with 7-zip)
  3. Using the previous steps import windows.admx with the corresponding adml file

Intune – Use a custom detection script

Because of old installations, TeamViewer is sometimes installed in the 64 bit version and sometimes in the 32 bit version. Since I would like to have a clear overview in Intune, I created the script below.

$tv = "C:\Program Files\TeamViewer\TeamViewer.exe", "C:\Program Files (x86)\TeamViewer\TeamViewer.exe"
$result = ($tv | Test-Path) -notcontains $true

if ($result) {
    Write-Output "Not installed"
    exit 1
else {
    write-output "Teamviewer detected, exiting"
    exit 0
teamviewer detection script intune