Bulk Password Reset – Active Directory

I was contacted by our Active directory team as they wanted to reset the password of hundreds of users. They need a powershell spell that can do below: Read userids (samaccountname) from text file. Reset the same password for all. user must change password should be unchecked. Sharing the script that has been quickly written…

Delete Messages from Exchange and Exchange Online Environment

This blog post outlines the process that can be followed when Exchange administrators are contacted by legal/compliance/Security teams to remove the messages matching certain criteria from the Exchange/Exchange Online environment. Exchange Note: – For commands to be successful indexing on the exchange servers should be in healthy condition. First and foremost step is to run…

Intune – Export MAM Devices Report

Sharing this Powershell spell to extract the report from INTUNE for MAM devices. Our Intune team requires a report to be extracted for MAM where users are using Outlook. This solution has been written which is based on Intune PowerShell Module. Prerequisites: Intune PowerShell Module. Azure AD PowerShell Module Download the script from below and change…

Extract Report – Azure AD Privileged Identity Management – Part 2

As promised in the last post https://techwizard.cloud/2019/10/08/extract-report-azure-ad-privileged-identity-management-part-1/, I am back with PowerShell Spell to extract the report of admins from Azure AD Privileged Identity Management. As this can be done thru Graph API only so things that we require are : Register APP in Azure AD with delegated permissions Graph Module https://github.com/markekraus/PSMSGraph MSonline Module https://www.powershellgallery.com/packages/MSOnline…

Automate move the New mailboxes to Cloud

Another day another Spell 🙂 We have migrated majority of our users and resource mailboxes to office 365. All new user mailboxes are now directly enabled on the cloud using Enable-Remotemailbox cmdlet from our identity management system. Question now is, what about shared mailboxes, rooms and equipment mailboxes that are still created OnPrem by our…