Skip to main content
deleted 48 characters in body
Source Link
Michael West
  • 18.6k
  • 2
  • 42
  • 105

Sitecore PowerShell Extensions provides a great way to create items in bulk.

Here is a simple script.

foreach($index in 1..10) {
    $item = New-Item -Path "master:\content\home\sample item$($index)" -ItemType "Sample/Sample Item"
    $item.Title = "Auto-generated index $($index)"
}

Check out the Gitbook for SPE herehere for more details.

Pro

  • In a few lines of code using the PowerShell syntax and Sitecore API you can do all sorts of things
  • Lots of documentation, videos, and people that know the module

Con

  • Requires the Sitecore PowerShell Extensions module to be installed within the Sitecore instance
  • Requires some familiarity with PowerShell
  • Not too difficult to shoot yourself in the foot. Remove-Item can wipe out an entire tree.

Update 1

I've created a sample for generating users and items in SPE with the help of Read-Variable. Check it out here.

Demo

Sitecore PowerShell Extensions provides a great way to create items in bulk.

Here is a simple script.

foreach($index in 1..10) {
    $item = New-Item -Path "master:\content\home\sample item$($index)" -ItemType "Sample/Sample Item"
    $item.Title = "Auto-generated index $($index)"
}

Check out the Gitbook for SPE here for more details.

Pro

  • In a few lines of code using the PowerShell syntax and Sitecore API you can do all sorts of things
  • Lots of documentation, videos, and people that know the module

Con

  • Requires the Sitecore PowerShell Extensions module to be installed within the Sitecore instance
  • Requires some familiarity with PowerShell
  • Not too difficult to shoot yourself in the foot. Remove-Item can wipe out an entire tree.

Update 1

I've created a sample for generating users and items in SPE with the help of Read-Variable. Check it out here.

Demo

Sitecore PowerShell Extensions provides a great way to create items in bulk.

Here is a simple script.

foreach($index in 1..10) {
    $item = New-Item -Path "master:\content\home\sample item$($index)" -ItemType "Sample/Sample Item"
    $item.Title = "Auto-generated index $($index)"
}

Check out the Gitbook for SPE here for more details.

Pro

  • In a few lines of code using the PowerShell syntax and Sitecore API you can do all sorts of things
  • Lots of documentation, videos, and people that know the module

Con

  • Requires the Sitecore PowerShell Extensions module to be installed within the Sitecore instance
  • Requires some familiarity with PowerShell
  • Not too difficult to shoot yourself in the foot. Remove-Item can wipe out an entire tree.

Update 1

I've created a sample for generating users and items in SPE with the help of Read-Variable. Check it out here.

Demo

Added example.
Source Link
Michael West
  • 18.6k
  • 2
  • 42
  • 105

Sitecore PowerShell Extensions provides a great way to create items in bulk.

Here is a simple script.

foreach($index in 1..10) {
    $item = New-Item -Path "master:\content\home\sample item$($index)" -ItemType "Sample/Sample Item"
    $item.Title = "Auto-generated index $($index)"
}

Check out the Gitbook for SPE here for more details.

Pro

  • In a few lines of code using the PowerShell syntax and Sitecore API you can do all sorts of things
  • Lots of documentation, videos, and people that know the module

Con

  • Requires the Sitecore PowerShell Extensions module to be installed within the Sitecore instance
  • Requires some familiarity with PowerShell
  • Not too difficult to shoot yourself in the foot. Remove-Item can wipe out an entire tree.

Update 1

I've created a sample for generating users and items in SPE with the help of Read-Variable. Check it out here.

Demo

Sitecore PowerShell Extensions provides a great way to create items in bulk.

Here is a simple script.

foreach($index in 1..10) {
    $item = New-Item -Path "master:\content\home\sample item$($index)" -ItemType "Sample/Sample Item"
    $item.Title = "Auto-generated index $($index)"
}

Check out the Gitbook for SPE here for more details.

Pro

  • In a few lines of code using the PowerShell syntax and Sitecore API you can do all sorts of things
  • Lots of documentation, videos, and people that know the module

Con

  • Requires the Sitecore PowerShell Extensions module to be installed within the Sitecore instance
  • Requires some familiarity with PowerShell
  • Not too difficult to shoot yourself in the foot. Remove-Item can wipe out an entire tree.

Sitecore PowerShell Extensions provides a great way to create items in bulk.

Here is a simple script.

foreach($index in 1..10) {
    $item = New-Item -Path "master:\content\home\sample item$($index)" -ItemType "Sample/Sample Item"
    $item.Title = "Auto-generated index $($index)"
}

Check out the Gitbook for SPE here for more details.

Pro

  • In a few lines of code using the PowerShell syntax and Sitecore API you can do all sorts of things
  • Lots of documentation, videos, and people that know the module

Con

  • Requires the Sitecore PowerShell Extensions module to be installed within the Sitecore instance
  • Requires some familiarity with PowerShell
  • Not too difficult to shoot yourself in the foot. Remove-Item can wipe out an entire tree.

Update 1

I've created a sample for generating users and items in SPE with the help of Read-Variable. Check it out here.

Demo

Add syntax highlighting hints.
Source Link
Corey Smith
  • 2.7k
  • 1
  • 22
  • 45

Sitecore PowerShell Extensions provides a great way to create items in bulk.

Here is a simple script.

foreach($index in 1..10) {
    $item = New-Item -Path "master:\content\home\sample item$($index)" -ItemType "Sample/Sample Item"
    $item.Title = "Auto-generated index $($index)"
}
foreach($index in 1..10) {
    $item = New-Item -Path "master:\content\home\sample item$($index)" -ItemType "Sample/Sample Item"
    $item.Title = "Auto-generated index $($index)"
}

Check out the Gitbook for SPE here for more details.

Pro

  • In a few lines of code using the PowerShell syntax and Sitecore API you can do all sorts of things
  • Lots of documentation, videos, and people that know the module

Con

  • Requires the Sitecore PowerShell Extensions module to be installed within the Sitecore instance
  • Requires some familiarity with PowerShell
  • Not too difficult to shoot yourself in the foot. Remove-Item can wipe out an entire tree.

Sitecore PowerShell Extensions provides a great way to create items in bulk.

Here is a simple script.

foreach($index in 1..10) {
    $item = New-Item -Path "master:\content\home\sample item$($index)" -ItemType "Sample/Sample Item"
    $item.Title = "Auto-generated index $($index)"
}

Check out the Gitbook for SPE here for more details.

Pro

  • In a few lines of code using the PowerShell syntax and Sitecore API you can do all sorts of things
  • Lots of documentation, videos, and people that know the module

Con

  • Requires the Sitecore PowerShell Extensions module to be installed within the Sitecore instance
  • Requires some familiarity with PowerShell
  • Not too difficult to shoot yourself in the foot. Remove-Item can wipe out an entire tree.

Sitecore PowerShell Extensions provides a great way to create items in bulk.

Here is a simple script.

foreach($index in 1..10) {
    $item = New-Item -Path "master:\content\home\sample item$($index)" -ItemType "Sample/Sample Item"
    $item.Title = "Auto-generated index $($index)"
}

Check out the Gitbook for SPE here for more details.

Pro

  • In a few lines of code using the PowerShell syntax and Sitecore API you can do all sorts of things
  • Lots of documentation, videos, and people that know the module

Con

  • Requires the Sitecore PowerShell Extensions module to be installed within the Sitecore instance
  • Requires some familiarity with PowerShell
  • Not too difficult to shoot yourself in the foot. Remove-Item can wipe out an entire tree.
Source Link
Michael West
  • 18.6k
  • 2
  • 42
  • 105
Loading