Skip to content

Commit

Permalink
Merge pull request #780 from pnp/erwinvanhunen-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
pkbullock authored Nov 12, 2024
2 parents 2522261 + fedc94e commit 395fe01
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/aad-get-tenantid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,19 @@ function Get-TenantIdFromSubscriptionId {

```powershell
# To retrieve the tenant id an authenticated connection is not required with PnP PowerShell
# the Get-PnPTenantId cmdlet accepts tenantUrls in the shape of
# * https://mytenant.sharepoint.com
# * mytenant.sharepoint.com
# * mytenant
# See Get-Help Get-PnPTenantId for more details.
param (
[Parameter(Mandatory = $true)]
[string] $domain
[string] $tenantUrl
)
$adminSiteURL = "https://$domain-Admin.SharePoint.com"
Connect-PnPOnline -Url $adminSiteURL -Interactive -WarningAction SilentlyContinue
Get-PnPTenantId
Get-PnPTenantId -Url $tenantUrl
```
[!INCLUDE [More about PnP PowerShell](../../docfx/includes/MORE-PNPPS.md)]
Expand All @@ -183,6 +188,7 @@ Sample first appeared on [https://github.com/dkaaven/M365-Scripts](https://githu
| [Daniel Kåven](https://github.com/dkaaven)|
| [Reshmee Auckloo](https://github.com/reshmee011) |
| Ganesh Sanap |
| Erwin van Hunen |

[!INCLUDE [DISCLAIMER](../../docfx/includes/DISCLAIMER.md)]
<img src="https://m365-visitor-stats.azurewebsites.net/script-samples/scripts/aad-get-tenantid" aria-hidden="true" />
6 changes: 6 additions & 0 deletions scripts/aad-get-tenantid/assets/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
}
],
"authors": [
{
"gitHubAccount": "erwinvanhunen",
"company": "",
"pictureUrl": "https://github.com/erwinvanhunen.png",
"name": "Erwin van Hunen"
},
{
"gitHubAccount": "ganesh-sanap",
"company": "",
Expand Down

0 comments on commit 395fe01

Please sign in to comment.