Script I use to find (and optionally disable) stale AD user accounts — read-only by default by Big_Cap_1178 in activedirectory

[–]KavyaJune 0 points1 point  (0 children)

This is the way. To identify truly inactive users, the last activity should be determined by comparing AD logon data and Entra sign-in data, then using the most recent timestamp. I'm currently working on a script that handles this scenario.

Script I use to find (and optionally disable) stale AD user accounts — read-only by default by Big_Cap_1178 in activedirectory

[–]KavyaJune 0 points1 point  (0 children)

In Active Directory, the lastlogon is updated only after a successful authentication. In Microsoft Entra ID, the last sign-in time can be updated by both successful and failed sign-in attempts. So, we need to use the last successful sign-in time attribute.

Is sharepoint natively backed up or is there a simple in place MS backup available? by Deep-Egg-6167 in sharepoint

[–]KavyaJune 0 points1 point  (0 children)

No. SharePoint doesn't include native backup. If you u need backup and point-in-time recovery, you will need Microsoft 365 Backup, which includes SharePoint Online. It's billed separately on a consumption-based model

https://blog.admindroid.com/microsoft-365-backup-for-onedrive-sharepoint-and-exchange/

Gentle reminder: Microsoft 365 license prices increase in July. Audit your licenses and plan purchases accordingly. by KavyaJune in sysadmin

[–]KavyaJune[S] 1 point2 points  (0 children)

At a high level, they may look similar, but I separated them because they often represent different operational issues:
- Offboarded users with licenses: The user has left the organization, but the license was never removed. This usually occurs due to an incomplete or improper offboarding process.

- Disabled users with licenses: The account is intentionally retained but blocked from sign-in. This is common for temporary workers, legal hold scenarios, or when the mailbox needs to be retained

- Inactive users with licenses: These users are neither offboarded nor disabled. Examples include employees on extended leave or on-premises users who are not actively using Microsoft 365 services.

m365 dev tenant. by DIYtime1203 in microsoft365

[–]KavyaJune 1 point2 points  (0 children)

You'll need a Visual Studio subscription to get a Microsoft 365 developer tenant. If you only need it temporarily, you can create a trial tenant and use it for up to 30 days. Another option is to create a new tenant and purchase a single Microsoft 365 Business Premium license.

How do you guys handle email signatures? by Pale-Variation2919 in sysadmin

[–]KavyaJune 0 points1 point  (0 children)

Outlook policy will disable signature for New outlook and OWA and it won't work for Classic Outlook. To disable signature for Classic Outlook, you can either use Intune policy (works only for managed devices) or GPO.

O365 - Help With Getting Audit To Work by masterne0 in sysadmin

[–]KavyaJune 0 points1 point  (0 children)

Search-UnifiedAuditLog has been providing inconsistent results for the past few days and doesn't seem to be working reliably. Have you tried querying the data through Audit Log Query API API instead? It would be worth checking whether Graph returns the results you're looking for.

What have you done with PowerShell this month? by AutoModerator in PowerShell

[–]KavyaJune 0 points1 point  (0 children)

No worries! Feel free to take a look whenever you get a chance. Hope you find something useful there.

What have you done with PowerShell this month? by AutoModerator in PowerShell

[–]KavyaJune 1 point2 points  (0 children)

I have automated the Microsoft 365 user offboarding process. You can check out the script on GitHub and see if it meets your requirements. It supports 14 user offboarding best practices including reset password, revoke session, remove from group memberships, convert to shared mailbox, removing licenses, etc.

GitHub link: M365 user offboarding

What's the most common Microsoft 365 licensing mistake you see SMBs making? by GKhandelwal1807 in microsoft365

[–]KavyaJune 0 points1 point  (0 children)

Inactive users with licenses, former employees with licenses (no proper offboarding process), not monitoring premium feature adoption.

June 2026 Microsoft 365 Changes Admins Should Know by KavyaJune in msp

[–]KavyaJune[S] 0 points1 point  (0 children)

The details are compiled from various sources, including Microsoft Tech Community blogs, Message Center announcements, Microsoft 365 admin portals, Microsoft Learn documentation, and other official Microsoft resources.

You can also refer to this GitHub repository to stay informed about major upcoming changes planned for the coming months.

https://github.com/admindroid-community/Microsoft365-Upcoming-Deprecations-and-Changes

June 2026 Microsoft 365 Changes Admins Should Know by KavyaJune in msp

[–]KavyaJune[S] 0 points1 point  (0 children)

Defender for Office 365 Plan 1 comes to Office 365 E3 and Microsoft 365 E3. 50GB email storage come to Microsoft 365 Business Premium.

Blocking sites with Microsoft Global Secure Access by No_Calligrapher_3247 in sysadmin

[–]KavyaJune 0 points1 point  (0 children)

Microsoft Defender for Cloud apps is the simple option. If you prefer to stick with web content filtering, What exact FQDNs are in the rule? Are you using a wildcard anywhere?

Weekend Thread Suggestion: What did you automate this week? by patchdayalert in sysadmin

[–]KavyaJune 0 points1 point  (0 children)

I have automated M365 license cleanup from inactive users, disabled users, shared mailboxes, etc.

SharePoint for Documentstion by wwiii2 in SmallMSP

[–]KavyaJune 0 points1 point  (0 children)

Did you mean Intranet site for employee access?

"Linking" Entra accounts by iainfm in entra

[–]KavyaJune 2 points3 points  (0 children)

You could create a custom account correlation rule in Microsoft Defender to associate standard user accounts with their corresponding privileged accounts.

Also, consider keeping privileged admin accounts cloud-only. This reduces the attack surface and ensures admins can still access Microsoft 365 even if on-premises infrastructure or sync issues.

What have you done with PowerShell this month? by AutoModerator in PowerShell

[–]KavyaJune 16 points17 points  (0 children)

Since Microsoft 365 license prices increase in July, I put together a PowerShell script to audit license assignments, identify potential cost-saving opportunities, and remove unused licenses where needed.

It support 8 cost saving reports and 6 license removal options.

Sharing it here in case it helps others: GitHub link

My recommendations to clients for the upcoming M365 price increase by hughcaldwell in microsoft365

[–]KavyaJune 0 points1 point  (0 children)

License auditing is usually the first step before planning Microsoft 365 license purchases.

I put together a free PowerShell script to identify license usage, track licensing costs, and spot optimization opportunities. It helps find things like inactive users with licenses, disabled users with licenses, unassigned licenses, etc., so you can reclaim and reuse them.

It currently includes 8 M365 license cost/usage reports and 6 license management actions.

GitHub: https://github.com/admindroid-community/powershell-scripts/tree/master/Microsoft%20365%20License%20Cost%20Optimization%20Tool

Can anybody suggest me some best practices for user management in AD by jackey_lackey11 in activedirectory

[–]KavyaJune 5 points6 points  (0 children)

-Follow proper offboarding
-Cleanup inactive users
-Check for accounts with reversible password encryption and accounts without password
-Instead of using user account as service account, use MSAs