MapiADTools

1.2.0

MapiADTools is a collection of advanced PowerShell functions for Windows and Active Directory administration. It focuses on system diagnostics, client management, and rapid inventory by combining high-speed parallel processing with deep-dive analysis.

--- Available Functions ---

[ Reporting & Diagnostics ]
- Get-ComputerReport (gcr): All-in-one client health da
MapiADTools is a collection of advanced PowerShell functions for Windows and Active Directory administration. It focuses on system diagnostics, client management, and rapid inventory by combining high-speed parallel processing with deep-dive analysis.

--- Available Functions ---

[ Reporting & Diagnostics ]
- Get-ComputerReport (gcr): All-in-one client health dashboard (ping, OS, uptime, reboot, AD last logon).
- Get-PendingReboot (gpr): Comprehensive check for pending reboot reasons (CBS, WU, MECM, etc.).
- Get-M365UpdateSource: Diagnoses the M365 Apps update source (MECM, GPO, ODT) and task health.
- Get-ClientActivity: Creates a timeline of computer power events (logon, shutdown, sleep).

[ AD & User Management ]
- Get-ADUserInfo (gadu): Flexible AD user search (name, SAM) with password expiry, last logon, and MECM PC data.
- Set-ADUserMustChangePassword: Toggles the "User must change password at next logon" flag.
- Test-ADUserMailboxMigrationStatus: Checks a user's Exchange Hybrid mailbox migration state.
- Get-ComputerLastOnline (lol): Finds a computer's most accurate last logon time by querying all DCs.
- Get-Win10ADClient: Queries AD for Win 10/11 clients, showing friendly OS names (e.g., 23H2).

[ Client Inventory & Management ]
- Get-InstalledSoftware (soft): Inventories software on remote computers with remote uninstallation.
- Get-FastPing (fping): High-performance, parallel ping with reverse DNS validation for large lists.
- Get-ClientUptime (uptime): Gets computer uptime and interactively logged-on users.
- Get-OSVersion (os): Retrieves detailed OS info (build, friendly name like 23H2).
- Get-MappedDrives: Lists all mapped network drives for active user sessions.
- Get-ClientFQDN (fqdn): Gets a client's FQDN from its NetBIOS name and copies it to the clipboard.
- Test-AdminAccess (IsAdmin): Checks for local admin privileges on target computers.

[ Advanced ]
- Invoke-GarbageCollection (igc): Manually triggers .NET Garbage Collection for memory profiling.

--- Sample Workflow ---

# 1. Get a complete, all-in-one status report for a client:
PS> Get-ComputerReport PCNAME

# 2. Inventory software on that machine:
PS> Get-InstalledSoftware PCNAME

# You can then pipe the results to filter and uninstall in your console.
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name MapiADTools

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name MapiADTools

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2025 Matthias Piplak. All rights reserved.

Package Details

FileList

Version History

Version Downloads Last updated
1.2.0 (current version) 4 10/10/2025
1.1.0 7 10/1/2025
1.0.2 8 9/26/2025
1.0.1 4 9/26/2025
1.0 6 9/26/2025