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
Identity
Exiting User / Off-boarding Form Template
Drafted an exiting user request form which is simple and effective for any IT solution. It is designed for approval authority to complete, sign and submit to IT for handling. EXIT_USER_FORMv1.3
New User / Onboarding Form Template
Drafted a new user request form which is simple and effective for any IT solution. It is designed for approval authority to complete, sign and submit to IT for handling. NEW_USER_FORMv1.3
Home Folder – Archiving Disabled Users
Here is aPowerShell script to archive all users within an organisational unit (Disabled Users) to a network path. Prerequisite is to grant your Administrator account with ownership/full control permissions to home folders in question prior move. If this condition is not met, then original home folders will remain with remnant data which was inaccessible. $users … Continue reading Home Folder – Archiving Disabled 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
Connecting PowerShell to Azure (Office 365)
First install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW from the Microsoft Download Center. Then install the Azure Active Directory Module for Windows PowerShell (64-bit version), and click Run to run the installer package. Before you can run any of the cmdlets discussed in this article, you must first connect to your … Continue reading Connecting PowerShell to Azure (Office 365)
Connecting PowerShell to Office 365
On your local computer, open Windows PowerShell and run the following command. $UserCredential = Get-Credential In the Windows PowerShell Credential Request dialog box, type your Exchange Online user name and password, and then click OK. Run the following command. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Note If you are an Office 365 operated … Continue reading Connecting PowerShell to Office 365