---
title: "Discussion on \"Invoke-Command alternative for Intune-managed Windows devices\" | Hashnode"
description: "Discussion on \"Invoke-Command alternative for Intune-managed Windows devices\". Continue reading if you want to have the ability to run PowerShell code (similar to Invoke-Command) against your Windows Intune-managed hybrid and cloud-only clients in a nearly real-time fashion and at the same time get the code results back 😎\n\n💡\n..."
url: "https://hashnode.com/posts/invoke-command-alternative-for-intune-managed-windows-devices/65faf4dc2e1b60e8e5282446"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Invoke-Command alternative for Intune-managed Windows devices](https://doitpshway.com/invoke-command-alternative-for-intune-managed-windows-devices?utm_source=hashnode&utm_medium=feed)

Continue reading if you want to have the ability to run PowerShell code (similar to Invoke-Command) against your Windows Intune-managed hybrid and cloud-only clients in a nearly real-time fashion and at the same time get the code results back 😎 💡 ...

Mar 20, 2024 · 6 min read · doitpshway.com  
Updated May 6, 2025  
Read the article

-   [#powershell](https://hashnode.com/tag/powershell)
-   [#intune](https://hashnode.com/tag/intune)
-   [#remediation](https://hashnode.com/tag/remediation)
-   [#remote](https://hashnode.com/tag/remote)
-   [#management](https://hashnode.com/tag/management)

## Written by

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

@AndrewZtrhgf · Czech Republic

  
[View profile](https://hashnode.com/@AndrewZtrhgf)

System Administrator that loves PowerShell

I work as System Administrator for more than 15 years now and I love to make my life easier by automating work &amp; personal stuff via PowerShell (even silly things like food recipes list generation).

## Responses 2

Markdown supported · ⌘↵ to post

[google user](https://hashnode.com/@woemoejack)

[Apr 30, 2025](https://hashnode.com/posts/invoke-command-alternative-for-intune-managed-windows-devices/65faf4dc2e1b60e8e5282446/comment/6812262ce49e52fba46b89a9)

Having a hard time using this. When I try to import the Intunestuff module, it says 'Import-Module: Assembly with same name is already loaded'. When I try to use it, I get 'The 'Invoke-Intunecommand' command was found in the module 'IntuneStuff', but the module could not be loaded due to the following error: \[Assembly with same name is already loaded\]'. Remove-module does nothing.

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[Apr 30, 2025](https://hashnode.com/posts/invoke-command-alternative-for-intune-managed-windows-devices/65faf4dc2e1b60e8e5282446/comment/6812262ce49e52fba46b89a9#reply-68123adaaa3f969d24911e63)

Try to open new psh console with -noprofile parameter to avoid loading other modules before this one. There is conflict with Az or some other one.

[google user](https://hashnode.com/@woemoejack)

[Apr 30, 2025](https://hashnode.com/posts/invoke-command-alternative-for-intune-managed-windows-devices/65faf4dc2e1b60e8e5282446/comment/6812262ce49e52fba46b89a9#reply-68124f8156d904b93998d8b1)

Importing the module is now the error: Could not load file or assembly 'Azure.Core, Version=1.44.1.0, Culture=neutral, 2742159e12e44c8' or one of its dependencies. The system cannot find the file specified.

[Marc Graham](https://hashnode.com/@surferstylee)

[Mar 28, 2024](https://hashnode.com/posts/invoke-command-alternative-for-intune-managed-windows-devices/65faf4dc2e1b60e8e5282446/comment/66055991d0ec636a02e03396)

Is it possible to run Invoke-IntuneCommand against an Entra ID group?

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[Mar 28, 2024](https://hashnode.com/posts/invoke-command-alternative-for-intune-managed-windows-devices/65faf4dc2e1b60e8e5282446/comment/66055991d0ec636a02e03396#reply-66056435a13bed735e2945e5)

No, you need to get devices from such a group and run it against them. But that's a trivial task...

[Marc Graham](https://hashnode.com/@surferstylee)

[Mar 28, 2024](https://hashnode.com/posts/invoke-command-alternative-for-intune-managed-windows-devices/65faf4dc2e1b60e8e5282446/comment/66055991d0ec636a02e03396#reply-66056a1d8b209caa809e932a)

I figured that would be the solution if there were not a built-in option. Thank you for the clarification m8! 🤙
