Powershell - Intune

Copper Contributor

We are trying to test the powershell script deployments to windows 10 1809 devices through Intune. But nothing happens. The device is Hybrid AD joined and also SCCM Co-managed (Part of Pilot Intune workloads). I still cannot see any Intune management extension getting downloaded. Tested the deployment of Profiles  under Device configuration which seems to work, but not the powershell. Verified the reports and eventviewer and there are no errors and any other specification that it is trying to do something. Have been struck here for last few days without any direction.

Any help will be much appreciated

5 Replies

Hi,

 

What action your are trying with powershell script also how you are running the script using the logged on credentials?

Just creating a reg key for the test. The script does not run  using the logged on credentials and also no enforce of script signature check.

 

 

Has the machine synced? Can you see any log files in C:\ProgramData\Microsoft\IntuneManagementExtension\Logs ? 

Nope. That's the issue. I do not see the Management extension installed on the PC.

Hi,

 

most of the time the issue is that the device was not auto-enrolled in Intune and therefore the Agent install is not triggered. See also official documentation here: https://docs.microsoft.com/en-us/intune/intune-management-extension#issue-intune-management-extensio...

 

Issue: Intune management extension doesn't download

Possible resolutions:

  • Be sure the devices are auto-enrolled in Azure AD. To confirm, on the device:

    1. Go to Settings > Accounts > Access work or school.
    2. Select the joined account > Info.
    3. Under Advanced Diagnostic Report, select Create Report.
    4. Open the MDMDiagReport in a web browser, and go to the Enrolled configuration sources section.
    5. Look for the MDMDeviceWithAAD property. If this property doesn't exist, then your device isn't auto enrolled.

    Enable Windows 10 automatic enrollment includes the steps.

 

best,

Oliver