Category Archives: PowerShell

PowerShell: How to use Get-ADUser to list all recently created accounts (and recently changed accounts)

PowerShell

For the next couple of posts I’ll be looking into AD security and auditing. In this article we’ll look at how to use Get-ADUser to list all recently created accounts.

With the increasing number of cyber attacks, security is at the top of most IT departments agenda. There are many checks you can perform to make sure AD is safe and secure, and that only valid or approved modifications have been made to user accounts. I’ll look at AD auditing in a future post, but this will be a handy snippet of PowerShell to help you identify recently created AD accounts, and a bonus bit of code to identify recently modified accounts!

Continue reading

PowerShell: Get-ADUser to retrieve disabled user accounts

PowerShell

I’ve written about Get-ADUser several times before because it is a pretty essential cmdlet for any Active Directory administrator, but I haven’t written about it in a while.

Recently I had a need to list all disabled accounts in a domain, so here is how to do it using Get-ADUser.

Continue reading

Office 365 PowerShell: How to bulk change Office 365 calendar permissions using Windows PowerShell

office365 powershell

I recently had to make some bulk changes to calendar permissions in Office 365, the client wanted the Default user permission to be set to Reviewer rather than AvailabilityOnly. So in this post I’ll walk you through how I went about making bulk permission changes to the Default user for the calendar folder for all users in Office 365.

Continue reading

PowerShell: How to check for drives with less than 10GB of free diskspace

PowerShell

I’ve been working on a simple PowerShell command today to import into our endpoint management solution so we can alert on disks with low diskspace. It’s been a while since I’ve dabbled with PowerShell, and it reminded me just how flexible it is and much I love it!

So I thought I would walk you through the evolution of the command I ended up with.

Continue reading

Office365 PowerShell: How to the find out mailbox sizes in Office365 (and Exchange 2016) using PowerShell

office365 powershell

In this post I’ll look at how to find out the mailbox sizes in Office365 using PowerShell.

I’m working with a few more companies now who use Office365 so I thought I would look at how to perform a few general Exchange administration tasks in Office365 using PowerShell so that I can manage and maintain them more easily.

Note: the steps below also work for Exchange 2016.

Continue reading

How to connect to and manage Office365 using PowerShell

Office365

In this post I’ll look at how to connect to Office365 using PowerShell.

I’m working with a few more companies now who use Office365 so I thought I would look at how to connect to Office365 using PowerShell so that I can manage and maintain them more easliy.

Continue reading