powershell-intune-samples icon indicating copy to clipboard operation
powershell-intune-samples copied to clipboard

This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.

Results 107 powershell-intune-samples issues
Sort by recently updated
recently updated
newest added

Testing in my lab has shown that if you use one of the "Import_JSON" scripts, it is possible to import a JSON file that has the DisplayName attribute matching one...

Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'. At E:\Dados\Microsoft\Intune\powershell-intune-samples-master\powershell-intune-samples-master\EndpointSecurity\EndpointSecurityPolicy_Export.ps1:568 char:13 + $Settings += Get-EndpointSecurityCategorySetting -PolicyI ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException...

Update logic to validate that the FileName and ImportPath variables are valid

We are using below code in order to enable MDM user scope in azure active directory. But the token which we are generating using service account is not working. This...

Microsoft changed the display name of the intune certificate connector. Currently the script checks for the value "Microsoft Intune Connector" in row 1358 $IntuneConnector = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName,...

I just used the MDATP/MacOS_MDATP_Deployment_Add.ps1 script to configure Defender for macOS permissions for deployment via Intune. However, my test macOD device still requested for Network Access during install, and then...

Hello, I have several configuration files in JSON format. For example; Multiple AppProtectionPolicy json files. Multiple CompliancePolicy json files. Multiple DeviceConfiguration json files. Multiple EndpointSecurity json files. Now i want...

Get-ADUser returns an ObjectNotFound error when specifying a gMSA service account

…Connector New connector is now named "Certificate Connector for Microsoft Intune"