Menu Sidebar
Menu

delete

List all SPNs in Active Directory

Ran into a situation where I needed to get all the SPNs that are listed in AD. Find duplicate SPNs Listing duplicate SPNs is fairly easy, just use setspn -X on your command-line and you’ll find out. What is a SPN? An SPN or Service Principal Name is a unique identity for a service, mapped with a specific account (mostly […]

Cleaning up Office365 Groups Mess

Office 365 Groups are a shared workspace for email, conversations, files, and events where group members can collectively get stuff done. It compliments the introduction of Microsoft Teams. The main thing to keep in mind is that this feature is still evolving. Why is it important to control Office 365 Group creation? This feature is […]

Delete Files and Folders Older Than X Days

Often times admin have to creates tasks like removing log files or some other files on a regular schedule. Here is an automated way of removing files / folders older than X days. Create a Batch file or Powershell script and add it to scheduled task. Batch File:

Powershell:

 

Deleteing & Permanently Deleting a user

Connect to Office365 via Powershell ISE

To delete a user:

Permanently delete a user or Remove the User from Recycle Bin:

Remove All the Users From the Cloud:

Remove All the Users From the Recycle Bin:

Remove All the Users With an Unlimited Count:

Mohammed Wasay

Dallas based Design Technologist & Hybrid Developer

Secured By miniOrange