Connect to Exchange Online
Establishes a PowerShell session to Exchange Online.
Connect-ExchangeOnline -UserPrincipalName admin@domain.com
Check Mailbox Statistics
View mailbox size, item count, and last logon time.
Get-MailboxStatistics -Identity user@domain.com | Format-List DisplayName,ItemCount,TotalItemSize,LastLogonTime
Set Out of Office (Auto Reply)
Configure an auto-reply for a specific user.
Set-MailboxAutoReplyConfiguration -Identity user@domain.com -AutoReplyState Enabled -InternalMessage "I am out of the office." -ExternalMessage "I am out of the office."
Grant Full Access Delegate Permission
Give an admin or manager full access to another mailbox.
Add-MailboxPermission -Identity target@domain.com -User admin@domain.com -AccessRights FullAccess -InheritanceType All
Grant Send As Permission
Allow a user to send emails from a shared mailbox.
Add-RecipientPermission -Identity shared@domain.com -Trustee user@domain.com -AccessRights SendAs
Message Trace (Last 48 Hours)
Find emails sent to a specific user recently.
Get-MessageTrace -RecipientAddress user@domain.com -StartDate (Get-Date).AddDays(-2) -EndDate (Get-Date)
Connect to Microsoft Graph (Entra ID)
Establishes a session for modern Entra ID and M365 management.
Connect-MgGraph -Scopes "User.ReadWrite.All", "Group.ReadWrite.All", "Directory.ReadWrite.All"
Force Azure AD Sync (AD Connect)
Run this on your AD Connect server to force an immediate delta sync.
Start-ADSyncSyncCycle -PolicyType Delta
Reset User Password
Resets a user password and forces them to change it at next login.
Update-MgUser -UserId user@domain.com -PasswordProfile @{ForceChangePasswordNextSignIn=$true; Password="NewTempPassword123!"}
Block User Sign-in
Immediately blocks a user from signing in (useful during security incidents).
Update-MgUser -UserId user@domain.com -AccountEnabled $false
Add User to Entra Group
Adds a user to a Microsoft Entra ID group using Object IDs.
New-MgGroupMember -GroupId "<Group-Object-ID>" -DirectoryObjectId "<User-Object-ID>"
Force Intune Device Sync
Forces a remote Windows/iOS/Android device to check in with Intune immediately.
Invoke-MgDeviceManagementManagedDeviceSyncDevice -ManagedDeviceId "<Device-ID>"
Retire / Remove Intune Device
Removes company data from the device and unenrolls it from Intune (Leaves personal data intact).
Invoke-MgDeviceManagementManagedDeviceRetire -ManagedDeviceId "<Device-ID>"
List Windows Autopilot Devices
Lists all registered Windows Autopilot devices in your tenant.
Get-MgDeviceManagementWindowsAutopilotDeviceIdentity
Force Group Policy Update
Applies all new GPOs to the machine immediately.
gpupdate /force
Clear DNS Cache
Resolves issues where a website recently changed its IP.
ipconfig /flushdns
Release and Renew IP
Drop current DHCP lease and request a new one.
ipconfig /release && ipconfig /renew
Test Network Port (PowerShell)
Check if a specific port (e.g. 443) is open to a destination.
Test-NetConnection -ComputerName example.com -Port 443
System File Checker
Scan and repair corrupted Windows system files. (Run as Admin)
sfc /scannow
Check Disk
Scan the C: drive for file system errors. (Run as Admin)
chkdsk C: /f /r
Trace Route (Diagnostics)
Trace the path packets take to a network host.
tracert example.com
DNS Lookup
Query DNS to find IP addresses or specific DNS records.
nslookup example.com
Check Listening Ports
See which processes are listening on which network ports.
netstat -ano | findstr LISTENING
Find Top CPU Processes (PowerShell)
Quickly view the top 5 processes consuming the most CPU.
Get-Process | Sort-Object CPU -Descending | Select-Object -First 5
Restart Explorer
Fixes issues where the Windows taskbar or file explorer hangs.
Stop-Process -Name explorer -Force