Skip to content

Commit a6b2ebc

Browse files
committed
Add script
1 parent 872e4f9 commit a6b2ebc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Get-Module -ListAvailable -Refresh -Name Microsoft.Entra* | Format-Table Name, RequiredModules
2+
3+
Write-Host ("{0} seconds:`tList commands with '`Get-Command -Module Microsoft.Entra.*' `n" -f [math]::Round( (Measure-Command {
4+
Get-Command -Module Microsoft.Entra.*
5+
} ).TotalSeconds, 2))
6+
7+
@('Applications', 'Authentication', 'DirectoryManagement', 'Governance', 'Groups', 'Reports', 'SignIns', 'Users') | ForEach-Object {
8+
Write-Host ("{0} seconds:`tMicrosoft.Entra.$_" -f [math]::Round((Measure-Command {
9+
Import-Module -Name "Microsoft.Entra.$_"
10+
}).TotalSeconds), 2)
11+
}

0 commit comments

Comments
 (0)