Forum Discussion
Powershell - Intune
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
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-extension-doesnt-download
Issue: Intune management extension doesn't download
Possible resolutions:
-
Be sure the devices are auto-enrolled in Azure AD. To confirm, on the device:
- Go to Settings > Accounts > Access work or school.
- Select the joined account > Info.
- Under Advanced Diagnostic Report, select Create Report.
- Open the
MDMDiagReport
in a web browser, and go to the Enrolled configuration sources section. - 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
-
- Swaminathan_ArumugamBrass Contributor
Hi,
What action your are trying with powershell script also how you are running the script using the logged on credentials?
- VINOD KUMARCopper Contributor
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.
- Swaminathan_ArumugamBrass Contributor
Has the machine synced? Can you see any log files in C:\ProgramData\Microsoft\IntuneManagementExtension\Logs ?