Powershell - Intune

%3CLINGO-SUB%20id%3D%22lingo-sub-353572%22%20slang%3D%22en-US%22%3EPowershell%20-%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-353572%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20trying%20to%20test%20the%20powershell%20script%20deployments%20to%20windows%2010%201809%20devices%20through%20Intune.%20But%20nothing%20happens.%20The%20device%20is%20Hybrid%20AD%20joined%20and%20also%20SCCM%20Co-managed%20(Part%20of%20Pilot%20Intune%20workloads).%20I%20still%20cannot%20see%20any%20Intune%20management%20extension%20getting%20downloaded.%20Tested%20the%20deployment%20of%20Profiles%26nbsp%3B%20under%20Device%20configuration%20which%20seems%20to%20work%2C%20but%20not%20the%20powershell.%20Verified%20the%20reports%20and%20eventviewer%20and%20there%20are%20no%20errors%20and%20any%20other%20specification%20that%20it%20is%20trying%20to%20do%20something.%20Have%20been%20struck%20here%20for%20last%20few%20days%20without%20any%20direction.%3C%2FP%3E%3CP%3EAny%20help%20will%20be%20much%20appreciated%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-353572%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-356147%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20-%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-356147%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Emost%20of%20the%20time%20the%20issue%20is%20that%20the%20device%20was%20not%20auto-enrolled%20in%20Intune%20and%20therefore%20the%20Agent%20install%20is%20not%20triggered.%20See%20also%20official%20documentation%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fintune%2Fintune-management-extension%23issue-intune-management-extension-doesnt-download%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fintune%2Fintune-management-extension%23issue-intune-management-extension-doesnt-download%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22issue-intune-management-extension-doesnt-download%22%20class%3D%22heading-with-anchor%22%20id%3D%22toc-hId-1284895293%22%20id%3D%22toc-hId-1340486079%22%3EIssue%3A%20Intune%20management%20extension%20doesn't%20download%3C%2FH4%3E%0A%3CP%3E%3CSTRONG%3EPossible%20resolutions%3C%2FSTRONG%3E%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CP%3EBe%20sure%20the%20devices%20are%20auto-enrolled%20in%20Azure%20AD.%20To%20confirm%2C%20on%20the%20device%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EGo%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESettings%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAccounts%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAccess%20work%20or%20school%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3ESelect%20the%20joined%20account%20%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EInfo%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EUnder%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAdvanced%20Diagnostic%20Report%3C%2FSTRONG%3E%2C%20select%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECreate%20Report%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EOpen%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EMDMDiagReport%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ein%20a%20web%20browser%2C%20and%20go%20to%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EEnrolled%20configuration%20sources%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Esection.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%3ELook%20for%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMDMDeviceWithAAD%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eproperty.%20If%20this%20property%20doesn't%20exist%2C%20then%20your%20device%20isn't%20auto%20enrolled.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fintune%2Fwindows-enroll%23enable-windows-10-automatic-enrollment%22%20data-linktype%3D%22relative-path%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EEnable%20Windows%2010%20automatic%20enrollment%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eincludes%20the%20steps.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ebest%2C%3C%2FP%3E%0A%3CP%3EOliver%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-354023%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20-%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-354023%22%20slang%3D%22en-US%22%3E%3CP%3ENope.%20That's%20the%20issue.%20I%20do%20not%20see%20the%20Management%20extension%20installed%20on%20the%20PC.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-354003%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20-%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-354003%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EHas%20the%20machine%20synced%3F%20Can%20you%20see%20any%20log%20files%20in%26nbsp%3BC%3A%5CProgramData%5CMicrosoft%5CIntuneManagementExtension%5CLogs%20%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-354002%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20-%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-354002%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20creating%20a%20reg%20key%20for%20the%20test.%20The%20script%20does%20not%20run%26nbsp%3B%20using%20the%20logged%20on%20credentials%20and%20also%20no%20enforce%20of%20script%20signature%20check.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-353921%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20-%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-353921%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20action%20your%20are%20trying%20with%20powershell%20script%20also%20how%20you%20are%20running%20the%20script%20using%20the%20logged%20on%20credentials%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
VINOD KUMAR
New 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

Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies