I would like to select/unselect one or more catalogs using PowerShell remoting: enter image description here

I'm currently trying this, but that does not seems to be the correct way to set a checkbox...

$sitePath = "/sitecore/content/MyTenant/MySite"
$catalogsItemPath = "$sitePath/Home/Catalogs"
$catalogName = "IWGplcServices"

Invoke-RemoteScript -Session $session -ScriptBlock {
    $catalogsItem = Get-Item $Using:catalogsItemPath
    $catalogsItem['Selected Catalogs'] = $Using:catalogName
  • Should it be a GUID instead of the name? Mar 2 at 4:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.