Click here to Skip to main content
11,578,739 members (60,479 online)
Click here to Skip to main content

Automatic Publishing of Contents on SharePoint by Powershell Script

, 25 Jan 2011 MIT 14.4K 6
Rate this:
Please Sign up or sign in to vote.
This article demonstrates the use of PowerShell script to publish contents on SharePoint site

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

Share

About the Author

Yogesh M Joshi
Software Developer AVAYA India Pvt Ltd.
India India
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

You may also be interested in...

Comments and Discussions

 
General[My vote of 1] Not an article Pin
Mark Nischalke15-Apr-11 2:58
mvpMark Nischalke15-Apr-11 2:58 
GeneralMy vote of 2 Pin
Petr Pechovic2-Feb-11 2:47
memberPetr Pechovic2-Feb-11 2:47 
GeneralNot an article Pin
Indivara24-Jan-11 20:11
subeditorIndivara24-Jan-11 20:11 
1. This shouldn't have been approved for publication. Please consider changing it to a tip/trick.

2. The code should be in text format, not an image
GeneralRe: Not an article Pin
Pranay Rana24-Jan-11 20:33
memberPranay Rana24-Jan-11 20:33 
GeneralRe: Not an article Pin
Yogesh M Joshi.25-Jan-11 10:10
memberYogesh M Joshi.25-Jan-11 10:10 
Generalthanks for sharing - have 5 Pin
Pranay Rana24-Jan-11 20:09
memberPranay Rana24-Jan-11 20:09 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150603.1 | Last Updated 25 Jan 2011
Article Copyright 2011 by Yogesh M Joshi
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid