Skip to content

Conversation

@GuilhermeP96
Copy link

  • Add Get-ADUserInfo.ps1 with interactive menus
  • Add ADModule.bat as script manager entry point
  • Reorganize project structure (scripts in /scripts folder)

Features:

  • Single user and batch processing modes
  • GUI file dialogs with CLI fallback
  • Multi-domain support with auto-detection
  • CSV export and profile photo export
  • All AD attributes display with array expansion
  • English localization

Co-authored-by: @GuilhermeP96

- Add Get-ADUserInfo.ps1 with interactive menus
- Add ADModule.bat as script manager entry point
- Reorganize project structure (scripts in /scripts folder)

Features:
- Single user and batch processing modes
- GUI file dialogs with CLI fallback
- Multi-domain support with auto-detection
- CSV export and profile photo export
- All AD attributes display with array expansion
- English localization

Co-authored-by: @GuilhermeP96
@GuilhermeP96
Copy link
Author

Pull Request: Comprehensive AD User Query Tool v2.0

Title: feat: Add comprehensive AD user query tool with batch processing and GUI support


Summary

This PR adds a complete AD user query solution that leverages the existing ADModule DLL to provide an easy-to-use interface for querying Active Directory users without requiring RSAT installation or admin privileges.

New Features

Get-ADUserInfo.ps1 - Interactive AD query tool

  • Single user and batch processing modes
  • Native Windows file dialogs (with CLI fallback for non-GUI environments)
  • Multi-domain support with automatic detection (3 methods + manual fallback)
  • Multiple output formats: Summary view, All attributes, CSV export
  • Profile photo export (thumbnailPhoto/jpegPhoto)
  • Array expansion for multi-valued attributes (groups, proxyAddresses, etc.)

ADModule.bat - Script manager

  • Menu-driven interface for easy script access
  • No PowerShell knowledge required for end users

Project Structure

Reorganized scripts into /scripts folder for better maintainability while keeping the DLL and module files at root level.

Use Cases

  • Helpdesk teams querying user info without admin tools
  • Security audits requiring bulk user data extraction
  • Environments where RSAT cannot be installed
  • Quick user lookups during incident response

Backward Compatibility

  • Original Import-ActiveDirectory.ps1 functionality preserved (moved to /scripts)
  • DLL and ActiveDirectory module files unchanged
  • No breaking changes to existing workflows

Testing

Tested on Windows 10/11 with PowerShell 5.1 against multiple AD environments.

- Query domain password policy (MaxPasswordAge)
- Calculate and display expiration date with days remaining
- Color-coded status (OK, Warning, Expires Soon, EXPIRED)
- Fallback to NET USER if policy query fails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant