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 ...
Jonathan Williams's user avatar
8 votes

Delete components which are in use

What about just deleting the entire Publication?
Rick Pannekoek's user avatar
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 ...
Vikaskr's user avatar
  • 358
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 ...
Dylan .. Mark Saunders's user avatar
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 ...
Atila Sos's user avatar
  • 6,290
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 ...
Sabarish Senthilnathan's user avatar
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: ...
Dylan .. Mark Saunders's user avatar
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 ...
Peter Kjaer's user avatar
  • 19.8k
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 ...
Rick Pannekoek's user avatar
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: ...
Peter Kjaer's user avatar
  • 19.8k
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 ...
Paul Russell's user avatar
  • 1,090
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 ...
Stanislav Maryenko's user avatar
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/...
Dylan .. Mark Saunders's user avatar
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 ...
Dylan .. Mark Saunders's user avatar
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", "...
Jan H's user avatar
  • 8,836
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", "...
Jan H's user avatar
  • 8,836
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 ...
Marko Milic's user avatar
  • 8,930
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) $...
Mario van der Hoeven-Riesebos's user avatar
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 ...
Bart Koopman's user avatar
  • 29.6k
3 votes
Accepted

How to publish a particular version of Page using Core Service

You cannot publish a particular version of an item (Page or Component). The system will always publish the latest checked-in version! (not 100% true, as you can publish in-Workflow versions (but I don'...
Atila Sos's user avatar
  • 6,290
3 votes

Reading ApplicationData in Powershell

I have a function that does it this way: #Example call: $appData2 = Get-TridionApplicationData -ObjectId $pubId -ApplicationId "tm:ItemTranslationOptions" -Verbose here's the guts of the ...
Warner Soditus's user avatar
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 ...
Rick Pannekoek's user avatar
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:...
Peter Kjaer's user avatar
  • 19.8k
3 votes

How do I rollback a VersionedItem to a previous version with the CoreService?

The Core Service has a "Rollback" method: VersionedItemData Rollback( TcmUri id, bool deleteVersions, string comment, ReadOptions readBackOptions ) id - The identifier of ...
Neil's user avatar
  • 6,698
3 votes

Remove-TcmQueueMessages -Queues PublishQueue removes the scheduled items from publishing queue

You're specifically referring to Remove-TcmQueueMessages -Queues PublishQueue When you say that you're seeing the issue after upgrading to 9.5 are you stating that the deletion of items in a scheduled ...
Dylan .. Mark Saunders's user avatar
3 votes
Accepted

Remove-TcmQueueMessages -Queues PublishQueue removes the scheduled items from publishing queue

To elaborate on Mark's (correct) answer: When you publish an item, two entities are created: A Publish Transaction entity which represents the Publish action A Publish Queue Message which (...
Rick Pannekoek's user avatar
2 votes

Error in Bundle Workflow Schema addition in PowerShell

here's what I do. I think some of my helper methods should be clear enough to figure out. if not, let me know. $folder = Get-TridionItem -IdOrPath (Get-EncodedWebdavUrl -WebdavUrl $WebdavLocation) if ...
Warner Soditus's user avatar
2 votes

Deleting old versions of Tridion items recursively for large publications

I just want to add that -MaxResolvedItemsCount default value is 10000 and the max value is 100000, so you need to run it multiple times to remove all old versions. Now, if you run this weekly, you ...
Marko Milic's user avatar
  • 8,930
2 votes
Accepted

Queue Publisher filtering in Tridion 8.5

SDL* Case 00379116 Subject: Queue Publisher filtering in Tridion 8.5: Mon 29/10/2018 12:47 There is no current way available to find and filter by publication target other than the way you have found....
Chris Mills's user avatar
  • 2,221
2 votes

"New-IshSession : One or more errors occurred" dont know why it is showing this error?

The question is regarding https://github.com/sdl/ISHRemote/ which is a business automation module on top of Tridion Docs. As of our combined Tridion DX messsage, we might see more Docs-oriented ...
Dave De Meyer's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible