Here's a handy one liner to find all users in a particular OU not logged in for 90 days: search-adaccount -accountinactive -usersonly -TimeSpan 90.00:00:00 -SearchBase "OU=Users,OU=Company,DC=Contoso,DC=com" | export-csv usersnotloggedinfor90days.csv Hope it helps!
Hi All, Sometimes you may find yourself needing to add a large number of users to a particular AD Security group. Using a PowerShell script, you can automate this process and target users based on the value of [...]
Hi All, In this blog I will show you a PowerShell script that will work out of the box to generate a CSV file with a list of devices and the name of the each [...]
Introduction Welcome to part 4 of my SharePoint Online Management Shell series. Oh boy, it's really getting exciting now! In today's post, I'll show you how to quickly enumerate Site Collections, then we'll move onto [...]
Introduction Welcome to part two of my SharePoint Online Management Shell series. In this post, I'll walk through how you manage connections to a SPOnline service using the SharePoint Online Management Shell, namely how to [...]
Introduction Welcome to part two of my SharePoint Online Management Shell series. Today is by far the simplest and quickest stage where I will walk you through setting up your PowerShell session ready for SharePoint [...]