---
title: "Discussion on \"How to find and replace commands from AzureAD and MSOnline deprecated modules in your scripts for the Graph ones\" | Hashnode"
description: "Discussion on \"How to find and replace commands from AzureAD and MSOnline deprecated modules in your scripts for the Graph ones\". If you are using PowerShell modules AzureAD, AzureADPreview, or MSOnline in your scripts you should be aware that they are gonna be retired on 30.6.2023. Moreover licensing MSOL cmdlets will stop working on 31.3.2023! So now is a good time to start r..."
url: "https://hashnode.com/posts/how-to-find-and-replace-commands-from-azuread-and-msonline-deprecated-modules-in-your-scripts-for-the-graph-ones/63e4e92871276c9fa133d49e"
---

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

Discussion

# [How to find and replace commands from AzureAD and MSOnline deprecated modules in your scripts for the Graph ones](https://doitpshway.com/how-to-find-and-replace-commands-from-azuread-and-msonline-deprecated-modules-in-your-scripts-for-the-graph-ones?utm_source=hashnode&utm_medium=feed)

If you are using PowerShell modules AzureAD, AzureADPreview, or MSOnline in your scripts you should be aware that they are gonna be retired on 30.6.2023. Moreover licensing MSOL cmdlets will stop working on 31.3.2023! So now is a good time to start r...

Feb 9, 2023 · 3 min read · doitpshway.com  
Read the article

-   [#powershell](https://hashnode.com/tag/powershell)
-   [#ast](https://hashnode.com/tag/ast)
-   [#graph-api](https://hashnode.com/tag/graph-api)

## 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

Markdown supported · ⌘↵ to post

No responses yet.
