The Power is in the Shell, Use it Wisely!

on

  • 322 views

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 – ...

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!

Statistics

Views

Total Views
322
Views on SlideShare
322
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Talk about the Meta Fields and XML FeaturesDemonstrate how to edit the page fields using the Meta Fields featureShow page source after editing the fields

The Power is in the Shell, Use it Wisely! The Power is in the Shell, Use it Wisely! Presentation Transcript

  • The Power is in the Shell, Use it Wisely! Ryan Dennis @SharePointRyan www.SharePointRyan.com
  • http://www.orcsweb.com
  • About The SpeakerRyan Dennis, MCTS, MCPD, MCITPSenior SharePoint Engineer @ ICCMicrosoft Virtual Technology Specialist (vTSP) www.SharePointRyan.com @SharePointRyan linkedin.com/in/sharepointryan ryan@sharepointryan.com
  • What is SharePoint 2010 FIS?• FIS = For Internet Sites• The license which allows you to build public-facing sites without paying for lots of CALs • Fundamentally it is no different than the standard SharePoint version, it’s all about the licensing…• For license specific questions, ask someone smarter than me…
  • Agenda• What is SharePoint 2010 FIS?• Quick intro to SharePoint + PowerShell• SharePoint website considerations• Using a spectacular set of PowerShell code to automate the provisioning of complete, branded sites• Q&A
  • SharePoint 2010 Cmdlets• 500+ Cmdlets…• MUCH better than STSADM.exe…• Can automate complete installations and configurations…• Still doesn’t answer every scenario, leaving gaps in functionality… – Example: Get, New and Remove SharePoint Groups – no cmdlet, easy to write a custom function though…
  • Agenda• What is SharePoint 2010 FIS?• Quick intro to SharePoint + PowerShell• SharePoint website considerations• Using a spectacular set of PowerShell code to automate the provisioning of complete, branded sites• Q&A
  • SharePoint website considerations• Performance• Design• Search Engine Optimization• Easy content authoring and approval
  • Where XML comes in• PowerShell can get XML data using a Type Accelerator and the Get-Content cmdlet• Example:[xml]$xml = Get-Content C:SomeFile.xml[xml] is the type accelerator, declaring the type asSystem.Xml.XmlDocument
  • Getting the content• There are a few cmdlets that can make bulk tasks VERY easy and fun… – Get-Content – ForEach-Object• Using these in conjunction with other SharePoint cmdlets or custom functions can make your PowerShell life much more awesome…
  • What were those again?• Get-Content – Can read the contents of a file… – Can store the contents in a variable… – Can process XML files… – Can be piped into other cmdlets…• ForEach-Object – Provides a way to loop through - and perform an action on - each item in a collection.…
  • XML SyntaxSubsite XMLWeb App XML
  • How PowerShell makes it all happen• Using PowerShell, we can automate: – Creating the Web Application – Creating the Site Collection(s) – Configuring Caching – Activating Features for Branding, SEO Tagging, etc. – Creating the Enterprise Search Center – Configuring Search Scopes and Target Results Page – Creating Subsites – Creating Pages – Adding Content to Pages – Making Dinner (OK, maybe not – but I’m sure V3 will)
  • Agenda• What is SharePoint 2010 FIS?• Quick intro to SharePoint + PowerShell• SharePoint website considerations• Using a spectacular set of PowerShell code to automate the provisioning of complete, branded sites• Q&A
  • DEMONSTRATIO N USING A SPECTACULAR SET OFPOWERSHELL CODE TO AUTOMATETHE PROVISIONING OF COMPLETE, BRANDED SITES
  • Demo Recap• Used PowerShell to automate: – Creation of the Web Application – Creation of the Site Collection(s) – Configuration of caching (BLOB, Output) – Feature activation – Application of custom branding – Search configuration – Subsite creation – Page creation – Content addition – SEO Meta Tag creation – Creation of custom footer list from list template – Warming up/caching of the sites for our viewing pleasure
  • Presentation Recap• XML is a great way to store input for scripts and functions• PowerShell is an awesome way to automate the building of entire, content filled, branded, SharePoint-based websites using XML as the input mechanism
  • Got-Questions -?Ryan Dennis, MCTS, MCPD, MCITPSenior SharePoint Engineer @ ICCMicrosoft Virtual Technology Specialist (vTSP) www.SharePointRyan.com @SharePointRyan linkedin.com/in/sharepointryan ryan@sharepointryan.com