Giter VIP home page Giter VIP logo

azureadtenantid's Introduction

Find an Azure Active Directory Tenant ID and/or Custom Domains using a registered Domain Name

PSGallery Version PSGallery Downloads

Description

Signed PowerShell module to

  • lookup a domain name and return the associated Entra ID (Azure Active Directory) Tenant ID
  • query ExchangeOnline for Registered Domains

Features

  • Queries the 'Well-Known' Entra ID (Azure AD) Open ID Connect (OIDC) Authorization Endpoint using a domain name and returns the TenantId
  • Queries the Exchange Online Autodiscovery service using a domain name and returns all other registered domains.
  • Aliases for new Entra ID naming Get-AzureADTenantId == Get-EntraIDTenantId AND Get-AzureADCustomDomains == Get-EntraIDCustomDomains
  • Works with Windows PowerShell and PowerShell (6.x+)

Installation

Install from the PowerShell Gallery on Windows PowerShell 5.1+ or PowerShell Core 6.x or PowerShell.

Install-Module -name AzureADTenantID

How to use

Entra ID (AAD) Tenant ID

Get-AzureADTenantId -domain 'microsoft.com'
or
Get-EntraIDTenantId -domain 'microsoft.com'

or

'microsoft.com' | Get-AzureADTenantId
or
'microsoft.com' | Get-EntraIDTenantId

Exchange Online Domains (which usually infers EntraID (AAD) custom domains so that email and UPN matches for users.)

Defaults to WW Cloud

Get-AzureADCustomDomains -domain 'microsoft.com'
or
Get-EntraIDCustomDomains -domain 'microsoft.com'

For GCC-H use the -GCCH switch

Get-AzureADCustomDomains -domain 'microsoft.com' -GCCH
or
Get-EntraIDCustomDomains -domain 'microsoft.com' -GCCH

or

'microsoft.com' | Get-AzureADCustomDomains  
or
'microsoft.com' | Get-EntraIDCustomDomains  

Keep up to date

azureadtenantid's People

Contributors

darrenjrobinson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

azureadtenantid's Issues

Authenticode Issue

Hi Darren

When attempting to install the V1.0.1 module I get the following PoSH error:

Authenticode issuer 'CN=Darren J Robinson, O=Darren J Robinson, L=Cherrybrook, S=New South Wales, C=AU' of the new module 'AzureADTenantID' with version '1.0.1' from root certificate authority 'CN=DigiCert Trusted Root G4, OU=www.digicert.com, O=DigiCert Inc, C=US' is not matching with the authenticode issuer 'CN=Darren J Robinson, OU=Darren J Robinson, O=Darren J Robinson, L=Cherrybrook, S=New South Wales, C=AU' of the previously-installed module 'AzureADTenantID' with version '1.0.0' from root certificate authority 'CN=DigiCert Assured ID Root CA, OU=www.digicert.com, O=DigiCert Inc, C=US'. If you still want to install or update, use -SkipPublisherCheck parameter.

Is this an error with an expired cert on your end or is my device possible missing a cert update in it's trusted root store? I will be chasing the 2nd possibility but I wanted to give you a heads up. I love the tool btw

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.