SharePoint Blog - René Hézser

Anmelden  RSS Feed RSS Feed
Startet die Suche

Archive

Kategorien

Links

Andere Blogs




ITaCS GmbH


SharePointConsole  

Nov 172007

I wrote a Console application, which will allow you do some common tasks for your SharePoint environment. stsadm lacks some functionality like recyling all list items from a list...

Just copy the exe to your SharePoint Server, and execute it with an account which has the appropriate rights on your farm.

Usage:
SharePointConsole http://siteurl[/weburl] Command [Parameter1 Parameter2]

The SharePointConsole has the following parameters:

  • EnumContentTypes
  • CreateContentType
  • RenameContentType
  • DeleteContentType
  • DeleteAllListItems
  • ShowInNewForm
  • ShowInEditForm
  • ShowInDisplayForm
  • DeleteAllVersions
  • RecycleAllVersions
  • SetTitleWithFilename
  • SetSearchCenterUrl
  • SystemUpdate
  • FeatureManager
  • EmptyRecycleBin

EnumContentType:
Returns all content types from the specified sitecollection.

CreateContentType newName [Parent ContentType]:
Creates a new content type and inherrits from an exiting one, if a parent content type is specified.

RenameContentType contentType newName:
Renames a content type

DeleteContentType Name:
Deletes a content type

DeleteAllListItems ListName:
Deletes all listItems from the specified list (use the displayname)

RecycleAllListItems ListName:
Recycles (moves to Recycle Bin) all listItems from the specified list (use the d
isplayname)

ShowInNewForm ListName FieldName bool:
Changes the visibility of a field in the NewForm

ShowInEditForm ListName FieldName bool:
Changes the visibility of a field in the EditForm

ShowInDisplayForm ListName FieldName bool:
Changes the visibility of a field in the DisplayForm

DeleteAllVersions ListName:
Deletes all version except the current one

RecycleAllVersions ListName:
Recycles all version except the current one

SetTitleWithFilename ListName:
Sets the Title of all Documents with its filename without extension

SetSearchCenterUrl SearchCenterUrl:
Sets the SearchCenterUrl for an entire WebApplication

SystemUpdate ListName SleepTime itemID:
Hit each ListItem and do a SystemUpdate(false) to call attached EventHandlers. With SleepTime you define how many seconds to wait, before working on the next ListItem. If the itemID is != 0, only that item will be updated

FeatureManager featureID Enable/Disable [AllSites|AllWebs|Farm] :
Enable or Disable a feature by its ID. The optional paramter AllSites enables the feature on all sitecollections AND webs, AllWebs only in all webs of the sitecollection and Farm in the whole farm

EmptyRecycleBin
Empties the Recylce Bin for the site collection (from all stages and all webs!)

Update 28. May 2009
New commands added.

Download Download the SharePointConsole

 
Posted by René Hézser | 6  Comments | Trackback Url  | 0  Links to this post | Bookmark this post with:        
Tags: Development, SharePoint
Technorati Tags: ,

Links to this post

Comments

commented on  Wednesday, June 04, 2008  4:05 PM  by  hallo
awesome man!

commented on  Wednesday, June 04, 2008  10:16 PM  by  thx
Glad my tool can help you :-)

René

commented on  Saturday, May 09, 2009  1:58 PM  by  Syed
Hi,

How can i set bool value to false,

i want to hide a specific column in my list, i use the following command.

C:\>sharepointconsole http://search/cat/reservations ShowInDisplayForm Reservations Amount bool=True
but i got the error bool=True is not a valid bool.

please suggest.


Thank you for any help in advance.

commented on  Sunday, May 10, 2009  10:11 AM  by  René Hézser
Hi Syed,
sharepointconsole http://search/cat/reservations ShowInDisplayForm Reservations Amount false

René

commented on  Wednesday, August 26, 2009  12:39 PM  by  Syed
Hi René Hézser,

Thanks for your help, well i need some more help from you.

i am using Room & equipment reservation template.

to reserve a room i have start date and end date. what i need is...

Start date : Should be equals to or greater than today's date.


how can i do that.

any help will be highly appreciated.

Thank you.

commented on  Thursday, May 10, 2012  4:16 PM  by  Gerardjm
I want recycle all versions of a library but I get this error

C:\SharePointConsole>SharePointConsole.exe http://demosharepoint.geyma.com Recyc
leAllVersions ListName:"Documentos Compartidos"
SharePointConsole Version 1.1.0.0 from http://www.hezser.de
Opening Site 'http://demosharepoint.geyma.com'...
Opening Web 'http://demosharepoint.geyma.com'...
List 'ListName:Documentos Compartidos' not found.
Press Enter to continue...

Name *:
URL:
Email:
Kommentar:


CAPTCHA Image Validation