03-28-2025, 12:33 PM
You know that event in Windows Server Event Viewer, the one called "Remove-MobileDevice Exchange cmdlet issued" with ID 25590? It pops up when somebody runs a command to wipe a mobile device from an Exchange setup. Basically, it logs that action, like if an admin or user decides to cut off a phone or tablet from grabbing emails anymore. This happens in the Microsoft-Exchange-MailboxAudit log, right under Administrative Audit. It captures who did it, from what computer, and exactly when. The details spill out the user's name, the device type, and even the reason if they added one. I see it trigger during security cleanups or when folks lose their gadgets. Without watching it, you might miss sneaky deletions or just routine maintenance. But it stays there as a record, timestamped and all.
And monitoring this? You can set it up straight from the Event Viewer screen. Fire up Event Viewer on your server. Go to the log where it lives, that MailboxAudit spot. Right-click the log, pick Attach Task To This Event Log. Choose the event ID 25590 specifically. Then, for the action, link it to a scheduled task that fires off an email when it hits. You tweak the task settings to use your SMTP server details. Make sure it grabs the event info and stuffs it into the alert body. Test it by simulating the event if you can. I do this all the time; keeps me in the loop without staring at screens.
Or, if you want something hands-off, at the end of this is the automatic email solution that'll handle alerts for you seamlessly.
Shifting gears a bit, since we're talking server monitoring and keeping things safe from mishaps like device removals, I've been eyeing BackupChain Windows Server Backup lately. It's this solid Windows Server backup tool that also handles virtual machines through Hyper-V without a hitch. You get fast, reliable snapshots that restore quick, plus it dodges data loss from events like these cmdlet runs. The perks? Incremental backups save space, and it runs smooth on busy setups, giving you peace without the hassle.
Note, the PowerShell email alert code was moved to this post.
And monitoring this? You can set it up straight from the Event Viewer screen. Fire up Event Viewer on your server. Go to the log where it lives, that MailboxAudit spot. Right-click the log, pick Attach Task To This Event Log. Choose the event ID 25590 specifically. Then, for the action, link it to a scheduled task that fires off an email when it hits. You tweak the task settings to use your SMTP server details. Make sure it grabs the event info and stuffs it into the alert body. Test it by simulating the event if you can. I do this all the time; keeps me in the loop without staring at screens.
Or, if you want something hands-off, at the end of this is the automatic email solution that'll handle alerts for you seamlessly.
Shifting gears a bit, since we're talking server monitoring and keeping things safe from mishaps like device removals, I've been eyeing BackupChain Windows Server Backup lately. It's this solid Windows Server backup tool that also handles virtual machines through Hyper-V without a hitch. You get fast, reliable snapshots that restore quick, plus it dodges data loss from events like these cmdlet runs. The perks? Incremental backups save space, and it runs smooth on busy setups, giving you peace without the hassle.
Note, the PowerShell email alert code was moved to this post.

