Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [powershell]

Issues relating to the PowerShell scripting language. This can include the stand-alone PowerShell scripts run from the command-line, or PowerShell DSC install automations.

0
votes
0answers
21 views

How to copy multiple pages and update the component's path with the new location

Would like to copy multiple pages from one location to another and update part of the path for the components associated. All other details such as folder structure, Item names, versions will be ...
3
votes
1answer
28 views

How to copy multiple items to a new location

Got over 200 items in various folders in one location that would like to copy to a new location while retaining the same folder structure. Each item has more than one version and would like to retain ...
1
vote
1answer
27 views

Reading a CSV file from media library through power shell script

This is working fine $global:ProductPath = "/sitecore/content/Home/Content_Pages/ " $csv = Import-CSV "C:\inetpub\wwwroot\mysample\Book1.csv" $bulk = New-Object "Sitecore.Data.BulkUpdateContext" try ...
2
votes
1answer
43 views

How to get detailed installation log while the update package is being installed remotely using SPE?

I'm using SPE to install the TDS .update package file. How do I get detailed installation log remotely in the script below? Current PowerShell Script: $SitecoreInstanceUri = "https://helixsite....
2
votes
2answers
64 views

Creating new items using powershell from csv

I want to know is there any way to create new items in sitecore using the powershell with data from excel sheet
2
votes
0answers
55 views

Sitecore powershell extension updating field in different languages

I have a script like function editItems{ param( [String]$ItemName, [String]$fileName ) $item = Get-Item -Path "master:\content\TAMM\Home\Home\...
1
vote
1answer
85 views

Sitecore Commerce 9 Installation Error - Unable to Stop SQL Service

I am getting the error not able to start SQL Server Service. Error: Restarting SQL Server Something went wrong restarting SQL server again Install-SitecoreConfiguration: Service 'SQL ...
1
vote
1answer
77 views

Error Installing Sitecore Commerce 9

I am getting the cast error while installing the Sitecore commerce 9. Error: Install-SitecoreConfiguration : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter ...
0
votes
1answer
66 views

HtmlAgilityPack.HtmlDocument is not loading html in Sitecore Powershell

I am writing powershell script that reads HTML from rich text field and then updates it. I am trying to use HtmlAgilityPack to read html. To test HtmlAgilityPack I wrote short script (below), which ...
3
votes
1answer
63 views

Script is not reading Workflow field on some item versions

I have a script that loops through items with a certain name, then loops through the versions of that item and checks the workflow standard fields (__Workflow, __Workflow state, etc). The goal of the ...
0
votes
0answers
47 views

Unable Generate the Self Signed Certificate

When we execut this PowerShell command: $thumbprint = (New-SelfSignedCertificate -Type SSLServerAuthentication -Subject "CN=$env:COMPUTERNAME @ Sitecore, Inc." -FriendlyName "$env:USERNAME ...
0
votes
0answers
185 views

Unlock item and unlock all items not working

I tried to unlock an item locked(the same issue for unlock All).By clicking the button the window will be empty. It looks like the item was unlocked but clicking Review -->My Items the item will be ...
2
votes
2answers
120 views

Solr Installation error : NativeCommandError

I am setting up the Solr 6.6.2 with SSL for Sitecore 9 installation on one of the new development machine. I am following the Kam Figy PS script : https://gist.github.com/kamsar/...
0
votes
1answer
35 views

New-ItemClone Error through SPE

I recently tried using New-ItemClone command on SPE and encountered this error: System.AggregateException,Cognifide.PowerShell.Commandlets.Data.Clones.NewItemCloneCommand These are the codes used: ...
1
vote
3answers
403 views

Sitecore Commerce Installation error 503 service unavailable

I am trying to install Sitecore Commerce with following version details: Sitecore 9.0.2 rev. 180604 (OnPrem)_single.scwdp Solr 6.6.3 SQL Server 2016 Express (13.0.4001) Sitecore.Commerce.2018.03-2.1....
1
vote
0answers
114 views

Sitecore Commerce 9 Update 1 Installation Issue with SPE 4.7.2

I tried to install Sitecore Commerce using PowerShell script but I got the error that resource is not found for Sitecore PowerShell Extensions 4.7.2 although I have this zip package for Sitecore 9 ...
1
vote
0answers
61 views

Powershell script fails on trying to start website when installing the Sitecore 9.0.1

My powershell script fails when I try to run it on the Azure VM. The local installation passes successfully. Any help is appreciated :) > [-------------------------------------------- ...
0
votes
1answer
99 views

“Cannot bind argument to parameter 'TenantTemplateLocation' because it is null” while inserting new Tenant

I am getting error while inserting a new Tenant in Sitecore 9. I checked the SPE log and found below exception. ManagedPoolThread #7 15:40:07 ERROR Cannot bind argument to parameter '...
4
votes
1answer
286 views

Commerce PowerShell Error SQL Provider is not installed

HI I'm trying to install Sitecore Experience Commerce and got this PowerShell message I tried the steps below to install this SQL for PowerShell but I still got the error message below https://docs....
2
votes
2answers
103 views

How can I change already created items to be under my newly created workflow?

Could Some one help me updating the workflow and workflow state field for all the sub items under the item say sitecore/content/ParentItem . I have created a new workflow and set it up in standard ...
5
votes
3answers
226 views

SIF Installation throwing Password Validation Failed exception

We are trying to install Sitecore 9.0.1 rev 171219 (XP0) on-premise. Everything goes fine until it tries to create Sitecore.Messaging Database. As the installation have already created ...
0
votes
0answers
220 views

Powershell Script to select Dropdown value

I am trying to run power shell script to select droplink value.With my script instead of selecting value the id is added to the droplink.please help me out what am missing? code: if ($Property){ ...
0
votes
1answer
69 views

Bulkupdate change language for source folder

I am running power shell script to bind treelist data in both language english & french.even if i change language am getting only English content in french .please review my script and let me know ...
0
votes
2answers
79 views

Powershell Script error

I am trying to import csv file to content data via power shell script.am getting following error message New-UsingBlock : Item '/sitecore/content/Web3/Content Shared Folder/Property Page' is ...
2
votes
3answers
438 views

Running PowerShell scripts without using Sitecore PowerShell Extensions module

We are facing some issues with Lucene during installation of PowerShell Extensions module (SPE). Is there any option to run Sitecore scripts from Windows PowerShell? I mean that I will just add ...
0
votes
1answer
72 views

Add renderings for all specific folder items using PS

We have a following structure : master:/content/market1/myfolder master:/content/market2/myfolder master:/content/market3/myfolder etc. I would like to add renderings for all items within "...
1
vote
1answer
104 views

How to change template for multiple items

There are many PDF files in our project that are manually added to the media library. I see that some of them have the template - /sitecore/templates/System/Media/Versioned/Pdf and some others - /...
0
votes
1answer
93 views

Sitecore PowerShell Extensions Remoting variables not working in Octopus Deploy

I'm having issues with variables when using SPE Remoting with OctopusDeploy, where method-local variables can't be used. I get this error The value of the using variable '$using:propertyTableKey' ...
4
votes
1answer
118 views

Sidekick Error on Sitecore and/or PowerShell

Hope someone could help me with the following issue on Sidekick Migration Tool. I'll explain exactly the steps I did to set-up and configure Sidekick on two Sitecore instances, both on the same ...
1
vote
0answers
53 views

“PowerShell Script Workflow Action”(approve/reject) is not fired from the workbox page on IE browser

"PowerShell Script Workflow Action"(approve/reject) is not fired from the workbox page on IE browser. Whereas it is working fine on chrome browser. None of the buttons(approve,approval all, reject ...
5
votes
3answers
912 views

Certificate does not contain Private Key exception while executing Sitecore 9 installation script on Windows 2012 R2

I am trying to install Sitecore 9 on Windows Server 2012 R2. There were some issues while executing Sitecore 9 installation script using SIF related to create self signed certificate for xConnect. ...
3
votes
1answer
104 views

Size Limit Error when deploying my Sitecore solution

I installed Sitecore 9.0 in my local machine and migrated Sitecore 8.0 to the local Sitecore 9. The migrated Sitecore 9.0 is working without any issue. While I'm working on packaging local Sitecore ...
1
vote
0answers
786 views

Install-SitecoreConfiguration : The property 'Value' cannot be found on this object. Verify that the property exists

Getting below error while running the Sitecore 9 PowerShell installation script(as admin) Install-SitecoreConfiguration : The property 'Value' cannot be found on this object. Verify that the ...
8
votes
3answers
1k views

Installation Error - Cannot validate argument on parameter 'Source'

I am in process of installing Sitecore 9 using SIF. Everything went smooth but when running the Power shell script to install SIF, ended up with the error below: PS>TerminatingError(Invoke-CopyTask)...
1
vote
1answer
3k views

The property 'Name' cannot be found on this object. Verify that the property exists

While running the script on powershell (admin) as `Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-...
14
votes
1answer
299 views

Why does Register-SitecoreInstallExtension appear to do nothing?

I'm making my first attempt at extending SIF, and I don't seem to be able to register a new Task correctly. Can anyone suggest what I'm doing wrong here? I've create a new script commandlet. It has ...
2
votes
1answer
857 views

Error message “Cannot bind parameter 'Uri'. Cannot convert value” when trying to install update package via PowerShell DSC

I am trying to install .update file with instructions provided by davis from previous post How to install zip file package from Installation Wizard using Powershell DSC? I am using another developer'...
6
votes
1answer
884 views

How to install zip file package from Installation Wizard using Powershell DSC?

I am trying to automate installing a "zip" package files from Sitecore's installation wizard. But I'm unable to work out how to allow an automation using PowerShell DSC to log in and trigger the ...
2
votes
1answer
115 views

Getting “Could not access network location SC_SQL_SERVER_USER” while installing Sitecore using Powershell DSC

I am trying to install Sitecore using PowerShell DSC following below link https://jermdavis.wordpress.com/2015/11/09/development-environments-with-powershell-dsc-part-5/ I am getting "Could not ...
3
votes
3answers
268 views

New-SCWebDeployPackage is not recognized

I'm trying to package a Sitecore solution and followed the instructions mentioned in the following URLs. https://doc.sitecore.net/cloud/working_with_sitecore_azure/configuring_sitecore_azure/...
23
votes
1answer
529 views

How to package a Helix solution using powershell

Following the Helix modular architecture, my solution is divided into a large amount of separate projects. To deploy the solution as a single package, we need to package all assets, configuration ...