Report Azure AD user IDs last logon timestamp using Microsoft Graph API

It's been a while since I've updated my blog so here we go! This is a step-instruction guide on how to generate Azure AD reports listing all users' last logon time. This is particularly handy as is not possible to generate any such report using AzureAD or AzureADPreview PowerShell modules. Prerequisites Azure Active DirectoryWeb browserMicrosoft … Continue reading Report Azure AD user IDs last logon timestamp using Microsoft Graph API

Home Folder – Compare folders against current domain users

Here is a PowerShell script which probes network home folders with users against the domain. Helpful in order to determine which home folders no longer reference current user accounts and which can safely be removed/archived. $folders = gci "\\Domain.Local\DFS\Users" #This is the root path containing home folders. foreach ($folder in $folders)   {     $username1 … Continue reading Home Folder – Compare folders against current domain users

PowerShell AD Manager Report

We can generate a list of users and their corresponding managers entered against AD user objects by using Powershell. echo user1, user2, user3 | get-aduser -Properties manager | Select-Object -Property Name, @{label='Manager';expression={$_.manager -replace '^CN=|,.* Replace user1, user2, user3 with usernames of objects. We can export this list by adding the line | Export-CSV "C:\LineManagers.csv"   … Continue reading PowerShell AD Manager Report