I am trying to write a script to loop through child items using the Get-ChildItem
cmdlet but it does not seem to be recognised.
$path = "master:/sitecore/content"
$x = Get-ChildItem $path
Write-Host $x.Name
Gives me the error:
Get-ChildItem : Method not found: 'Void System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems(System.String, Boolean, UInt32)'.
At line:2 char:6
+ $x = Get-ChildItem $path
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-ChildItem], MissingMethodException
+ FullyQualifiedErrorId : System.MissingMethodException,Microsoft.PowerShell.Commands.GetChildItemCommand
I am using Sitecore 8.2 rev 161115, SXA 1.2 rev 161216, SPE 4.4