Hello, I am extremely new<\/strong> to PS and was looking for assistance with my script below. The script works as it should but I want to make a couple adjustments and I don’t know how. For the Delete Mobile device part, is there a way to remove there mobile devices without knowing their IDs? Is the a script that can just detect that they have a phone and remove?<\/p>\n
Advertisement
Also, I am looking to add to this script on how to remove from all Cloud Based 365 Groups. We are in a hybrid environment and I have another script that already removes the On Prem DLs and Security Groups. This script doesn’t include cloud base groups so I am looking to see if there’s a way to add that step to my existing script. Can it just remove them from the cloud DLs that they are only a member of? Any help is appreciated!!! Down below is my script.<\/p>\n