Deploy Acrobat Reader via Intune (Based PowerShell)

Microsoft states that everything that you can do through the Azure portal, is possible to accomplish with PowerShell as well. This becomes possible because Microsoft has built the new portal on top of what called Microsoft Graph API.

If you were to add a new Device Profile, add an App or create a Compliance Policy, all the actions you take within the portal, is actually being processed by the Microsoft Graph API that communicates with the Microsoft Intune.
With this knowledge in mind, it’s now possible to start exploring all the possibilities available through the Microsoft Graph API and how it can be used with PowerShell.

The Intune management extension lets you upload PowerShell scripts in Intune to run on Windows 10 devices. The management extension supplements Windows 10 mobile device management (MDM) capabilities and makes it easier for you to move to modern management.

When a PowerShell script is assigned to a group, The Intune will install the Intune Management Extension. This Intune Management Extension responsible for deploying your PowerShell scripts and it will install the service “Microsoft Intune Management Extension” and setup a scheduled task Intune Management Extension Health.

Intune Management Extension check for scripts every 60 minutes, and the health check will run once a day to see if the agent is functioning correctly.

Prerequisites

  • Devices must be joined to Azure AD or Hybrid Azure AD.
  • Devices must run Windows 10, version 1607 or later.
  • Automatic MDM enrollment must be enabled in Azure AD, and devices must be auto-enrolled to Intune

Deploy Acrobat Reader via Intune

Create PowerShell script for Acrobat Reader and make sure to work or change with the specific parameters:

  • Installdir – Local installation folder with dedicated folder
  • source – Remote files

Go to PowerShell script and add the Acrobat Reader PowerShell file.

Next, make sure to assign the relevant group that will received the Acrobat Reader

Note: once finished lets speed up the process and synchronize one of the workstation.

The PowerShell script for Deploy

# Check if Acrobat Reader installed already in registry.
$CheckADCReg = Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | where {$_.DisplayName -like “Adobe Acrobat Reader DC*”}
# If Adobe Reader is not installed continue with script. If it’s installed already script will exit.
If ($CheckADCReg -eq $null) {

# Path for the temporary download folder.
$Installdir = “C:\Intune\install_adobe”
New-Item -Path $Installdir -ItemType directory

# Download the installer from the Adobe website.
$source = “ftp://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/1800920044/AcroRdrDC1800920044_en_US.exe”
$destination = “$Installdir\AcroRdrDC1800920044_en_US.exe”
Invoke-WebRequest $source -OutFile $destination

# Start the installation when download is finished
Start-Process -FilePath “$Installdir\AcroRdrDC1800920044_en_US.exe” -ArgumentList “/sAll /rs /rps /msi /norestart /quiet EULA_ACCEPT=YES”

# Wait for the installation to finish.
Start-Sleep -s 240

# Finish by cleaning up the download.
rm -Force $Installdir\AcroRdrDC*
}

 

More ways to manage Modern Management

Deploy Acrobat Reader via Intune (Based PowerShell)

Microsoft states that everything that you can do through the Azure portal, is possible to accomplish with PowerShell as well. This becomes possible because Microsoft has built the new portal on top of what called Microsoft Graph API.
If you were to add a new Device Profile, add an App or create a Compliance Policy, all the actions you take within the portal, is actually being processed by the Microsoft Graph API that communicates with the Microsoft Intune.
With this knowledge in mind, it’s now possible to start exploring all the possibilities available through the Microsoft Graph API and how it can be used with PowerShell.
The Intune management extension lets you upload PowerShell scripts in Intune to run on Windows 10 devices. The management extension supplements Windows 10 mobile device management (MDM) capabilities and makes it easier for you to move to modern management.
When a PowerShell script is assigned to a group, The Intune will install the Intune Management Extension. This Intune Management Extension responsible for deploying your PowerShell scripts and it will install the service “Microsoft Intune Management Extension” and setup a scheduled task Intune Management Extension Health.
Intune Management Extension check for scripts every 60 minutes, and the health check will run once a day to see if the agent is functioning correctly.

Prerequisites

  • Devices must be joined to Azure AD or Hybrid Azure AD.
  • Devices must run Windows 10, version 1607 or later.
  • Automatic MDM enrollment must be enabled in Azure AD, and devices must be auto-enrolled to Intune

Deploy Acrobat Reader via Intune

Create PowerShell script for Acrobat Reader and make sure to work or change with the specific parameters:

  • Installdir – Local installation folder with dedicated folder
  • source – Remote files

Go to PowerShell script and add the Acrobat Reader PowerShell file.


Next, make sure to assign the relevant group that will received the Acrobat Reader

Note: once finished lets speed up the process and synchronize one of the workstation.
The PowerShell script for Deploy

# Check if Acrobat Reader installed already in registry.
$CheckADCReg = Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | where {$_.DisplayName -like “Adobe Acrobat Reader DC*”}
# If Adobe Reader is not installed continue with script. If it’s installed already script will exit.
If ($CheckADCReg -eq $null) {
# Path for the temporary download folder.
$Installdir = “C:\Intune\install_adobe”
New-Item -Path $Installdir -ItemType directory
# Download the installer from the Adobe website.
$source = “ftp://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/1800920044/AcroRdrDC1800920044_en_US.exe”
$destination = “$Installdir\AcroRdrDC1800920044_en_US.exe”
Invoke-WebRequest $source -OutFile $destination
# Start the installation when download is finished
Start-Process -FilePath “$Installdir\AcroRdrDC1800920044_en_US.exe” -ArgumentList “/sAll /rs /rps /msi /norestart /quiet EULA_ACCEPT=YES”
# Wait for the installation to finish.
Start-Sleep -s 240
# Finish by cleaning up the download.
rm -Force $Installdir\AcroRdrDC*
}

 
More ways to manage Modern Management

You may also like...

2 Responses

  1. rub says:

    Thanks for share ,great info tht i fead here

  2. Amal Burdo says:

    I couldn’t refrain from commenting. Well written!

Leave a Reply

error: Content is Protected !!
%d bloggers like this: