Created
May 10, 2023 09:03
-
-
Save AdamNaj/4f252ca0b25c9fa27d1cf275d4a2e5fe to your computer and use it in GitHub Desktop.
Get all sites that are active in your Sitecore instance:
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
[Sitecore.Sites.SiteManager]::GetSites() | | |
% { | |
$props = @{}; | |
$_.Properties.GetEnumerator() | ForEach-Object { | |
$props[$_.Key] = $_.Value | |
} | |
[PSCustomObject]$props | |
} | Show-ListView -Title "Active site properties" -Icon "office/32x32/window_earth.png" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment