8
votes
Accepted
Delete components which are in use
Although it sounds like you now have this sorted, two possible alternatives (if you needed to keep the Publication) would have been:
Update the Schemas of the remaining Components to remove the ...
8
votes
8
votes
Accepted
How do I purge queues in SDL Tridion using powershell without having to confirm the purge?
Short answer:
Remove-TcmQueueMessages -Confirm:$false
Explanation:
The -Confirm switch is a standard parameter in PowerShell and actually indicates that you want it to ask you for confirmation ...
6
votes
Accepted
"Access is denied for the user:<>" Tridion Powershell Module
Being able to create a client and connect is not the same as trying to perform an action that requires permissions. The message you are seeing is coming from Tridion: it's telling you that it does not ...
6
votes
Accepted
Where can I find detailed information on available Topology manager scripts
I found 2 very useful links one from the documentation and the other from Dominic's blog. Both of these provide details on all available cmdlets (commandlets). Dominic's blog goes a step further and ...
6
votes
Accepted
Reading ApplicationData in Powershell
On closer investigation of the Publication Object - this exposes the App Data as the ExtensionData as follows:
$pubsList = Get-TridionPublications | Select-Object Title, Id, ExtensionData;
This ...
6
votes
Accepted
How to remove Schema fields using PowerShell script
You can establish a Core Service connection from Powershell to the CM and then use the Core Service API to perform the desired action.
Just one question though, why do you need to remove schema ...
6
votes
Content Porting in CM using PowerShell code - SDL Web 8.5
The ProcessSummary class does have methods that provide information with regards to the items exported/imported. The screen shot below is the preview of the ProcessSummary class in Visual Studio.
To ...
6
votes
Web 8.5 CMS - Rollback all items of selected publications to a specific date
As noted, you can script this. In fact anything you can do on the GUI can be scripted - and this is certainly a good candidate.
A couple of Points to note where you will need to consider a strategy:
...
5
votes
Deleting old versions of Tridion items recursively for large publications
Depending on timeout error you have:
If it is a CoreService timeout error: use -TimeOut option in cmdlet
If it is a database query execution timeout: use commandTimeout and longCommandTimeout ...
5
votes
Accepted
TRI Import.ps1 fails for websites-only
So I delved a little further a followed what the code was doing.
The devil was in the detail
<tcm:DefaultPageTemplate IsInherited="true" blah blah blah />
So as I'd implemented this into an ...
5
votes
Unpublish item using Powershell
I had to create a new object. $publishInstructionData retained the object type of PublishInstructionData even though I re-initialized it.
The changes to the code include:
# Create a different object ...
5
votes
Unpublish item using Powershell
If you'd excuse the shameless plug, I recommend that you start using the open-source Tridion PowerShell Modules that I maintain.
With the Tridion-CoreService module imported, you could just do this:
...
5
votes
Accepted
How to setup Content Delivery for a standard Staging/Live web deployment using Topology Manager
Yes. If you want to have a “Staging & Live” Topology Type, you want a Topology consisting of two CD Environments: one with purpose “Staging” and one with purpose “Live”.
Indeed, each CD ...
5
votes
CD microservices installation for LIVE and STAGING targets
Avoid editing the scripts unless you really run into something that cannot be set with a parameter. You should be able to pass in parameters for everything, though.
Some common parameters:
--Name ...
4
votes
Automated CME functional validation after upgrade, hotfix or patch installation
I would go for CoreService for all actions, apart from parts where you have GUI extensions. It's quite quick to write and easy to check. Running these tests will quickly show you the problem. Make ...
4
votes
How to use the CoreService PowerShell module using username + password
I have found a solution to get a CoreServiceClient using a plain username and password.
$client = Get-TridionCoreServiceClient
$credentials = New-Object System.Net.NetworkCredential("username", "...
4
votes
Accepted
Error in Bundle Workflow Schema addition in PowerShell
function createBundle($config, $metadataXmlContent, $title, $locationPubId, $locationFolderId, $metadataSchemaId){
$bundle = $null;
$bundleNameSpace = "http://www.sdltridion.com/...
4
votes
Accepted
Error in Virtual Folder Type creating Bundle in PowerShell
FOUND IT.
Eventually I realised that it wasn't the schema I wanted to attribute to the Bundle - but the schema I want to base the Bundle on (hence the Virtual Folder Reference!)
Adding the following ...
4
votes
CME error: Item of type 'CmEnvironmentData' with id 'Tridioncm_DEVSQLCMSDSQL2016CMSD' does not exist
Yes, it is stored in the Windows Environment variable TRIDION_CM_ENVIRONMENT_ID.
# you can set it with PowerShell
[Environment]::SetEnvironmentVariable("TRIDION_CM_ENVIRONMENT_ID", "Development", "...
4
votes
SDL Tridion 2013 SP1 - PowerShell scripts to publish Content in Publications
Is there any way we can publish all SG’s within the publication using
PowerShell?
Answer is yes. You can publish any sort of items using $client.Publishmethod. These items are pages, structure ...
4
votes
How do I rollback a VersionedItem to a previous version with the CoreService?
In powershell:
Import-Module "Tridion-CoreService"
# rollback
$client = Get-TridionCoreServiceClient
$client.Rollback("tcm:1-123-v8", $false, "rolling back", $null)
$...
3
votes
Accepted
Deleting old versions of Tridion items recursively for large publications
Note that Remove-TcmItemsOldVersions isn't a PowerShell script, but a PowerShell cmdlet.
The beauty of PowerShell cmdlets is that you can create a PowerShell script that uses them. I would strongly ...
3
votes
Accepted
Clear-TcmPublicationTarget failing with a timeout
Sounds a lot like database maintenance is lacking, for MS SQL Server you can use the following command:
exec sp_updatestats;
This updates the statistics of the databaase which usually solves ...
3
votes
Error in Bundle Workflow Schema addition in PowerShell
I'll just answer the latest edit to your question:
Exception calling "Create" with "2" argument(s): "Unable to find
http://contentbloom.net/tridion/schemas/workflow/xxxschema:Metadata."
At line:...
3
votes
Accepted
core service creation of nested keywords
Parent item of your keyword remains the Category. You should set ParentKeywords property and pass your parent keyword there.
#here's what I was missing... need to set LocationInfo
$locInfo = New-...
3
votes
Accepted
How to decomission a publishing target with PowerShell?
It works fine for me. It must be because it's not using the 2013 SP1 version of the client. Probably due to this known issue: First run connects to 2011 endpoint.
Try to persist your 2013 settings (...
3
votes
How to decomission a publishing target with PowerShell?
A helpful workaround is given by Peter earlier. You can use the built in PowerShell module.
Import-Module Tridion.ContentManager.Automation
Clear-TcmPublicationTarget "remove-me-tcm:0-1-65537" -...
3
votes
Accepted
Tridion 2013SP1 Purge Publishing Transactions with Powershell Problem
I always try to use the supported code published by SDL.
Since this code is supported, there will be less code to write, test and maintain myself.
SDL Have an enhancement request to fix Remove-...
3
votes
Accepted
syntax error when installing the DXA 1.7 Audience Manager module
It seems you problem is in understanding how to use PowerShell exactly, and the documentation isn't overly clear on that I agree, since it uses the single quotes (they are single quotes rather than ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
powershell × 49core-service × 18
2013-sp1 × 10
web8.5 × 8
2013 × 7
topology-manager × 5
sdl-tridion × 4
content-manager × 4
dxa × 3
content-delivery × 3
2011 × 2
web8 × 2
publishing × 2
workflow × 2
keyword × 2
bundles × 2
upgrade × 1
audience-manager × 1
installation × 1
dxa-1.7 × 1
search × 1
microservices × 1
2013-sp1-hr1 × 1
sites-9.5 × 1
tridion-docs × 1