Created
November 5, 2019 04:24
-
-
Save MartinMiles/f9b353a5e75b9ba3de0b9012dcaa040c to your computer and use it in GitHub Desktop.
Sitecore Instances List
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-WebSite | ForEach-Object { | |
$binPath = Join-Path -Path $_.PhysicalPath -ChildPath "bin\Sitecore.Kernel.dll" | |
$item = Get-Item -Path $binPath -ErrorAction SilentlyContinue | |
if( $item -ne $null ) | |
{ | |
"Sitecore Site: Name:$($_.Name), Version: $($item.VersionInfo.FileVersion), Path $($_.PhysicalPath)" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment