Category: SP Object Model

Today I spoke in front of a great crowd at SharePoint Saturday Austin, which was an all-around blast!

The presentation was about PowerShell (shocker, right?) – but this time had a different vibe as I modified one of my presentations to work in SharePoint 2013 – and I also utilized PowerShell Web Access in Google Chrome for 100% of the technical demonstrations.

Below is a description of the topic itself along with PowerPoint Slides and the PowerShell and XML code that was used in the demo:

The Power is in the Shell, use it wisely!

The topic: The Power is in the Shell, use it wisely!The story: You may have heard of PowerShell, but do you know what it’s capable of? Gone are the days of long, painful STSADM batch files – we have Windows PowerShell, and it’s here to stay.Learn how you can use Windows PowerShell both to perform simple one-off tasks as well as complex, bulk operations. Leveraging the Object Model gives Administrators and Developers the ability to do in a few lines of code what would’ve taken a lot more work (and probably a Developer or two) in the WSS platform.

In this demo filled session, you’ll see how you can get started with PowerShell, and you will hopefully leave with not only a greater understanding of what PowerShell is – but what it is capable of and how you can start using it to automate tasks in your SharePoint 2010 or 2013 environment.

Share:

Like this:

This morning (and afternoon) I spoke in front of a great crowd at the Dog Food Conference in Columbus, Ohio.

I chose to re-use my Build your SharePoint Internet presence with PowerShell presentation, as I still think it’s a good presentation that gives a good introductory view into how you can automate site provisioning with PowerShell. I also try to keep it light from a technical standpoint and tend to focus more on the business case around using PowerShell as an automation tool.

Below is a description of the topic itself along with PowerPoint Slides and the PowerShell and XML code that was used in the demo:

Build your SharePoint Internet presence with PowerShell

The topic: Build your SharePoint Internet presence with PowerShellThe story: Everybody knows PowerShell is powerful, it’s in the name! But did you know that PowerShell can read and understand XML? By leveraging XML among other things, complete builds can be automated – making them efficient and predictable.

In this fun, interactive and demo-filled session – I will show you how you can leverage PowerShell to help you build your branded, company website from the ground up using PowerShell and XML. I will also pass along some tips and tricks that will help you become a PowerShell Rockstar!

Share:

Like this:

This morning I spoke in front of a great crowd at the second annual SharePoint Saturday Cincinnati, also dubbed ScarePoint Saturday Spookinnati!

I chose to re-use my Build your SharePoint Internet presence with PowerShell presentation, as I still think it’s a good presentation that gives a good introductory view into how you can automate site provisioning with PowerShell. I also try to keep it light from a technical standpoint and tend to focus more on the business case around using PowerShell as an automation tool.

Below is a description of the topic itself along with PowerPoint Slides and the PowerShell and XML code that was used in the demo:

Build your SharePoint Internet presence with PowerShell

The topic: Build your SharePoint Internet presence with PowerShellThe story: Everybody knows PowerShell is powerful, it’s in the name! But did you know that PowerShell can read and understand XML? By leveraging XML among other things, complete builds can be automated – making them efficient and predictable.

In this fun, interactive and demo-filled session – I will show you how you can leverage PowerShell to help you build your branded, company website from the ground up using PowerShell and XML. I will also pass along some tips and tricks that will help you become a PowerShell Rockstar!

Share:

Like this:

Today I had the privilege of speaking (twice) at the second PowerShell Saturday, in Charlotte, NC!

Originally I was accepted to speak about advanced functions and XML, so I tweaked my “Build your SharePoint Internet presence with PowerShell” talk to be more of a deep-dive into XML and PowerShell advanced functions (it’s also called “The Power is in the Shell, Use it Wisely!”). However, another speaker was unable to attend and I ended up doing two SharePoint-focused PowerShell presentations. I’ll detail them below, and since this will be a long post, here are links to the different areas within the page:

The Power is in the Shell, Use it Wisely!

The topic: The Power is in the Shell, Use it Wisely!The story: Everybody knows PowerShell is powerful, it’s in the name! But did you know that PowerShell can read and understand XML? By leveraging XML among other things, complete builds can be automated – making them efficient and predictable.

In this fun, interactive and demo-filled session – I will show you how you can leverage PowerShell to help you build your branded, company website from the ground up using PowerShell and XML. I will also pass along some tips and tricks that will help you become a PowerShell Rockstar!

This was the second PowerShell Saturday, and the first in Charlotte – and I was very proud to be a part of a great event.

My session went pretty flawlessly, as I lucked out and had zero issues with the presentation or the demos. For those of you who attended, thank you for being a part of it – and if you have any feedback or questions feel free to contact me either on Twitter or via e-mail (Ryan at SharePointRyan dot com).

I promised to upload my slides and demo PowerShell code, so the slides are on Slideshare and the XML and PowerShell code is saved on SkyDrive.

Intro to SharePoint + PowerShell

The topic: Intro to SharePoint + PowerShellThe story: You may have heard of PowerShell, but do you know what it’s capable of? Gone are the days of long, painful STSADM batch files – we have Windows PowerShell, and it’s here to stay.Learn how you can use Windows PowerShell both to perform simple one-off tasks as well as complex, bulk operations. Leveraging the Object Model gives Administrators and Developers the ability to do in a few lines of code what would’ve taken a lot more work (and probably a Developer or two) in the WSS platform. You’ll see how you can get started with PowerShell, and you will hopefully leave with not only a greater understanding of what PowerShell is – but what it is capable of and how you can start using it to automate tasks in your SharePoint 2010 environment.

Share:

Like this:

Sometimes when I’m working on something related to SharePoint, I come across scenarios where I’m constantly building up test data in Lists. Frequently when doing this, I have a need to almost constantly delete and recreate list items.

Rather than using the UI or writing nice PowerShell one-liners (which for the record I love doing), I decided to throw together a little script for this.

This script takes two mandatory parameters, one for URL and one for List Name. Assuming you give it the correct values, it will quickly use Object Model code to call the Delete() method against every item in the list (or library).

Here is the script, hope it works for you! Note: I did not add any kind of confirmation, so if you run this – it WILL literally delete all items, it won’t first make sure you’re serious about it – so make sure you know what you’re doing! 🙂