Thursday #PowerShell #PowerTweet – Creating REAL demo documents for #SharePoint

By | May 29, 2014

Recently it was necessary for me to be involved in testing the consistency of search indexing as part of a proof of concept for a client.

This testing happened to coincide with a new demo I was building for community/conference gigs where I needed to populate a SharePoint site with a shed ton of data (100,000k plus documents) so figured I needed a way to generate documents on an industrial scale.

The challenge was to some up with a way of creating documents that were not just full of Lorem Ipsum or a similarly constrained vocabulary as I wanted to be able to exercise the client search index and didn’t just want to load it with what would effectively constitute a load of documents full of keywords.

Needless to say, Powershell would be the solution to my woes…

Rather than me spending a bunch of time explaining the make up of the script, check it out and if you have any questions, drop a comment.

I’ve included the two seedfiles I used in the GitHub repo hereΒ to make your life easier. Note that the first is a tab separated file based on a SQL Server whitepaper (and it’s copyright is owned by Microsoft) and the second is a CSV file of the Integrated Public Sector Vocabulary (IPSV) as used by the Public Sector in the UK – it contains some terms that may not be suitable for all of your needs so worth a quick review before you use it πŸ™‚

more to follow…

3 thoughts on “Thursday #PowerShell #PowerTweet – Creating REAL demo documents for #SharePoint

  1. Paul Hunt

    Great little script Seb, I love it..

    Just one correction though, $rand in the conjunction statement should be $Count

    $con = ($conjunction[$rand.Next($conjunction.Count)])

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *