Project

PSPublishModule

PSPublishModule is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars47
Forks16
Open issues0
PowerShell Gallery downloads17213
Releasev3.0.131
Language: C# Updated: 2026-09-02T21:02:59.0000000+00:00

Curated Examples

Example.Findmicrosoftclientidentity

Source-owned example maintained with PSPublishModule.

# $Folder = $Env:PSModulePath -split ";"
# $Output = foreach ($F in $Folder) {
#     if (Test-Path -Path $F) {
#         Get-ChildItem -LiteralPath $F -Recurse -Filter "*.dll" | ForEach-Object {
#             if ($_.Name -like "Microsoft.Identity.Client.dll") {
#                 [PSCustomObject] @{
#                     Name    = $_.FullName
#                     Version = $_.VersionInfo.FileVersion
#                 }
#             }
#         }
#     }
# }
# $Output | Format-Table -AutoSize

$Folder = $Env:PSModulePath -split ";"
$Output1 = foreach ($F in $Folder) {
    if (Test-Path -Path $F) {
        Get-ChildItem -LiteralPath $F -Recurse -Filter "*.dll" | ForEach-Object {
            if ($_.Name -like "Microsoft.IdentityModel.Abstractions.dll") {
                [PSCustomObject] @{
                    Name    = $_.Name
                    Path    = $_.FullName
                    Version = $_.VersionInfo.FileVersion
                }
            }
        }
    }
}
$Output1 | Group-Object -Property Name | ForEach-Object {
    "DLL Name: $($_.Name)"
    $_.Group | Format-Table -AutoSize -Property Version, Path
    ''
}

$Output2 = foreach ($F in $Folder) {
    if (Test-Path -Path $F) {
        Get-ChildItem -LiteralPath $F -Recurse -Filter "*.dll" | ForEach-Object {
            if ($_.Name -like "Microsoft.Identity.Client.*") {
                [PSCustomObject] @{
                    Name    = $_.Name
                    Path    = $_.FullName
                    Version = $_.VersionInfo.FileVersion
                }
            }
        }
    }
}
$Output2 | Group-Object -Property Name | ForEach-Object {
    "DLL Name: $($_.Name)"
    $_.Group | Format-Table -AutoSize -Property Version, Path
    ''
}