Online Training On SharePoint
                      

Sunday, 5 October 2008

Getting All the Web Objects URL in a SharePoint farm using PowerShell Scripting

I tried to access the Web Objects URL in SharePoint Farm with the Power Shell. It was really easy to get them. Following are the steps to do so:

1. To use Power Shell for SharePoint we need to log in into the server as the SharePoint object Model does not allow to access remotely.

2. Now we need to add the Microsoft.SharePoint Assembly in the Power Shell environment. To add the Microsoft.SharePoint assembly to the PowerShell environment we need to run the following command in Power Shell:

[System.Reflection.Assembly]::Load(“Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c“)

We can also use the static method LoadWithPartialName on the Assembly class SharePoint. The syntax would be:

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
(Although the LoadWithPartialName has been deprecated.)

3. Now created functions and filters. With these we will get different objects and pass them through the Hierarchy. (Check the SharePoint Hierarchy)

function AcessFarm
{
return [Microsoft.SharePoint.Administration.SPFarm]::Local
}

This function will return the SPFarm object. We will pipe this object with the next Filter. This will get all the web services on the SharePoint Farm.

filter AcessWebServices
{
$webServices = new-object Microsoft.SharePoint.Administration.SPWebServiceCollection($_)

$webServices
}

filter AcessWebApplication
{
$_.WebApplications
}

filter AcessSiteCollection
{
$_.Sites
}

filter AcessWeb
{
$_.AllWebs
}

Now we need to pipe these functions and filters to get a table of WebURL of the Web objects in the Farm. The command looks like:

AcessFarm AcessWebServices AcessWebApplication AcessSiteCollection AcessWeb format-table -property url

The last format-table will put the output in a table format and the URL property of Web Objects will display only the URL's of all the Web Objects.

PowerShell is very strong feature and SharePoint Admin can do the magic with this. With the above command we can now access all the properties and method of SPWeb Objects. We can do many further advanced tasks with these objects.

You may also find interesting to read:

Getting SharePoint Server Version with PowerShell and Deploying custom SharePoint site collection with the help of PowerShell in Windows Server 2008


Friday, 3 October 2008

Demos On SharePoint

Following Demos are very useful to learn SharePoint (I found these demos on Microsoft site):

1. Configure a SharePoint Server 2007 site to receive e-mail

2. Deploy an administrator-approved form template

3. Simplify collaboration with a SharePoint team site

4. Streamline business processes with forms and workflows

5. Create a presentation from slides in a slide library

6. Create and manage a SharePoint calendar

7. Make it easier to find information with views

8. The new SharePoint Server 2007 Fluent interface

9. Prepare to back up files on Office SharePoint Server

10.Connect people to information with portals

11.Enterprise Content Management with SharePoint Server 2007

12.Different ways to check documents in and out of a SharePoint site

13.Use Word 2007 to post to a SharePoint blog

14.Create a recurring meeting with a Meeting Workspace in a SharePoint calendar and then connect it to Outlook 2007

15.Collaborate using a recurring meeting in a SharePoint calendar

16. Back Up Office SharePoint 2007

17. Using SharePoint to manage your classroom

18. Search for information on a SharePoint site

19. Add KPIs to your SharePoint site

20. Display KPIs in a dashboard

21. Give a user access to a SharePoint site

22. Find just the data you need by using Filter Web Parts in a dashboard

23. Make better business decisions with reports and dashboards

24. Enable Excel Services and data connections for a SharePoint team site

25. Use a Document Workspace to collaborate on a document from a SharePoint library

26. Use an approval workflow in SharePoint Server 2007

27. Create and publish Web pages on a publishing site

SharePoint Trainings and Project Work

We (I and my team. Consist of people certified in SharePoint ) provide the SharePoint Training . We have three kind of courses available in SharePoint:

1. Beginner Level
2. Intermediate Level
3. Advanced Level

All these courses contains extensive case studies and tests at the end of each level. We have defined the course content for these three levels. We can send the course content on request on below email.

We also execute projects in SharePoint involving OOB features or customization of sites with Visual Studio. We can give stand alone code solution on SharePoint.

We also provide consultation on SharePoint Projects. We can also provide solution/feedback to your problems.

You can contact us on mossexperts@gmail.com

Related Posts with Thumbnails