Skip to content

Instantly share code, notes, and snippets.

@AdamNaj
Created May 10, 2023 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamNaj/4f252ca0b25c9fa27d1cf275d4a2e5fe to your computer and use it in GitHub Desktop.
Save AdamNaj/4f252ca0b25c9fa27d1cf275d4a2e5fe to your computer and use it in GitHub Desktop.
Get all sites that are active in your Sitecore instance:
[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