Click here to Skip to main content
Licence MIT
First Posted 24 Jan 2011
Views 5,150
Downloads 0
Bookmarked 4 times

Automatic Publishing of Contents on SharePoint by Powershell Script

By | 25 Jan 2011 | Article
This article demonstrates the use of PowerShell script to publish contents on SharePoint site
 
Part of SharePoint Zone sponsored by
See Also

Introduction

Publishing script for SharePoint automates the publishing, approving of SharePoint contents like pages, XSL sheets and everything that is residing inside a document library with versioning and content approval enabled. Generally, in a SharePoint WCM development project, multiple items get checked out during development. Towards the end of the project during deployment, the developer or tester has to manually find all the unpublished items. Checking in these items and approving those manually is a time consuming task. This script automates these all manual steps. You can use this script for “bulk publishing” of multiple documents on SharePoint .

Using the Code

There are different functions in the PowerShell file. The functions are recursive and you may choose to add them even as snapin. Following is the example of the function.

1.png

Downloads

This full project is available at http://publishspcontent.codeplex.com/.

History

  • 25th January, 2011: Initial post

License

This article, along with any associated source code and files, is licensed under The MIT License

About the Author

Yogesh M Joshi.

Software Developer
AVAYA India Pvt Ltd.
India India

Member

I have completed my B.E. Degree in IT form Aditya Engineering College, Beed. (Maharashtra) India.
 
I have completed Diploma In Advanced Computing (DAC) in Feb 07.
 
Now I am working for AVAYA India Pvt. LTD as software engineer.
Platform : C/C++, Solaris 10, AIX and Windows

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
General[My vote of 1] Not an article PinmvpMark Nischalke2:58 15 Apr '11  
GeneralMy vote of 2 PinmemberPetr Pechovic2:47 2 Feb '11  
GeneralNot an article PinsubeditorIndivara20:11 24 Jan '11  
GeneralRe: Not an article PinmemberPranay Rana20:33 24 Jan '11  
GeneralRe: Not an article PinmemberYogesh M Joshi.10:10 25 Jan '11  
Generalthanks for sharing - have 5 PinmemberPranay Rana20:09 24 Jan '11  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 25 Jan 2011
Article Copyright 2011 by Yogesh M Joshi.
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid