---
title: "Comment by Steve Oliver on \"Get all Intune policies using PowerShell and Graph API\" | Hashnode"
description: "This looks very useful but I get an error when installing the IntuneStuff module. &quot;Import-Module : AzureRM.Profile already loaded. Az and AzureRM modules c"
url: "https://hashnode.com/posts/get-all-intune-policies-using-powershell-and-graph-api/6346bd82ee0a118e13cc412d/comment/6489d4e892942eb88291b2e7"
---

[Discussion](https://hashnode.com/posts/get-all-intune-policies-using-powershell-and-graph-api/6346bd82ee0a118e13cc412d)

Comment [Get all Intune policies using PowerShell and Graph API](https://hashnode.com/posts/get-all-intune-policies-using-powershell-and-graph-api/6346bd82ee0a118e13cc412d)

[Steve Oliver](https://hashnode.com/@skoliver1)

[Jun 14, 2023](https://hashnode.com/posts/get-all-intune-policies-using-powershell-and-graph-api/6346bd82ee0a118e13cc412d/comment/6489d4e892942eb88291b2e7)

This looks very useful but I get an error when installing the IntuneStuff module.

"Import-Module : AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook."

I've found that the AzureRM module is an older module, but I cannot uninstall it because it is a dependency of IntuneStuff.

[Steve Oliver](https://hashnode.com/@skoliver1)

[Jun 14, 2023](https://hashnode.com/posts/get-all-intune-policies-using-powershell-and-graph-api/6346bd82ee0a118e13cc412d/comment/6489d4e892942eb88291b2e7#reply-6489e0cb2ec2d2bb12a3bbc0)

Actually, this was for the latest version, 1.4.0. I saw that 1.3.0 had lots more downloads so I installed that one instead and it works great.

Thank you for this!
