Skip to main content

New answers tagged

-2 votes

Why is Get-ChildItem not working

There is a bug in windows That if you try to use powershell commands that normally worked. Now error out. The fix is a workaround the file/folder naming, that said, if you have a folder called say '...
AndystUK's user avatar
1 vote
Accepted

Is there a way to look at versions tied to an item in recycle bin or archive?

You can use below snippet to fetch archived items from database along with version numbers and count as below. $database = [Sitecore.Configuration.Factory]::GetDatabase("master") $...
ckhanna's user avatar
  • 1,143
0 votes

Is there a way to look at versions tied to an item in recycle bin or archive?

Once you have the recycle bin archive: $database = [Sitecore.Configuration.Factory]::GetDatabase("master") $archive = [Sitecore.Data.Archiving.ArchiveManager]::GetArchive("recyclebin&...
Marcel Gruber's user avatar
0 votes

Setting a new items' DropLink field value using PowerShell

Here's an example script that sets values for a DropLink, Multilist, and DropList field on a Sitecore # Define the path to the item to be edited $itemPath = "master:/sitecore/content/path/to/your/...
CHUKKA PRASAD's user avatar
0 votes

Archive Sitecore items using Sitecore PowerShell Extention

You might get errors sometimes when you have empty item. here is the script # Define the path to the item to be archived $itemPath = '/sitecore/content/ITEM' # Get the item to be archived $item = Get-...
CHUKKA PRASAD's user avatar
0 votes

PowerShell Elevate Session State on XM Cloud

I had a similar issue, and here's how I fixed it: Update the existing Sitecore XM Cloud variable SITECORE_SPE_ELEVATION to "Confirm". You can refer to the Sitecore documentation for more ...
Jitendra soni's user avatar

Top 50 recent answers are included