Giter Club home page Giter Club logo

find-emailaddress.ps1's Introduction

Find-EmailAddress

Find-EmailAddress is a PowerShell script that retrieves Active Directory objects by searching for a specified email address or alias. The script then outputs the object's username, display name, email address, and the Organizational Unit (OU) location.

Requirements

The script requires PowerShell 3.0 or later and the Active Directory module to be installed on your system. To check the PowerShell version on your system, run the following command:

$PSVersionTable.PSVersion

If you have an earlier version of PowerShell, consider upgrading to a newer version for better compatibility and security. You can download the latest version of PowerShell from the official GitHub repository.

To install the Active Directory module, you can follow the instructions in this Microsoft guide.

Installation

  1. Download the Find-EmailAddress.ps1 script.
  2. Save it to a convenient location on your computer or server.

Usage

Open a PowerShell terminal and navigate to the directory where you saved the script. Run the script with the desired email address or alias as an argument:

.\Find-EmailAddress.ps1 -EmailAddress "[email protected]"

The script will output a table with the columns UserName, DisplayName, EmailAddress, and OU.

For help and more information about the script, run:

Get-Help .\Find-EmailAddress.ps1 -Detailed

Contributing

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes.
  4. Push your changes to your fork.
  5. Open a pull request.

find-emailaddress.ps1's People

Contributors

virtualox avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.