Thursday, December 22, 2011

SharePoint 2010: Online PowerShell Command Builder Tool

Online PowerShell Command Builder Tool: The Windows PowerShell Command Builder for Microsoft SharePoint 2010 Products and Microsoft Office 365 is a Silverlight 4 application that is designed to help IT professionals and power users learn how to use Windows PowerShell for administrative tasks.

Windows PowerShell Command Builder for SharePoint 2010 Products and Office 365


Known InfoPath 2010 Bug: Dropdown event with Debugger....issue

Dropdown change event with Debugger may have to logoff from machine Task manager also stops working...looks like it strange...

Steps: Basically using 64-bit InfoPath Designer:

1.Create a blank form or use existing form.

2.Add a drop-down list to the form.

3.Add Choices manually or load from datasource.

4.On Developoer ribbon, click on Changed Event to generate a changed event code in VSTA.

5.Place a break point inside the field_Changed procedure. You can add some code in order for the breakpoint to stop inside the generated method when the dropdown has been changed.

6.Run the application from VSTA by clicking Start Debugging (Play icon or from Debug menu).

7.Click on the drop-down control and change the value.

This is where it will crash the system. I have searched all forums and internet but know one seems to know about this issue. If you are able to recreate this problem, please let me know.


Wednesday, December 14, 2011

Fast Search in SharePoint 2010 - What's that you don't get in SharePoint 2010 Search

Microsoft completed the acquisition of an enterprise search company, FAST Search
& Transfer. For those who used MOSS 2007, FAST Enterprise Search Platform (ESP) could be integrated
as a separate server product, via various web parts. But as an important result of this acquisition,

Microsoft has developed FAST Search Server 2010 for SharePoint that is a fully integrated search
server engine, one that deeply supports SharePoint search functions.

For end users, FAST Search Server 2010 provides a very visual and dynamic user experience, with
the following capabilities added to SharePoint 2010 Search:

Thumbnails and previews for documents — Word and PowerPoint files in the search result
will be displayed with a thumbnail of the cover page. Moreover, PowerPoint files can be previewed
in the results list without opening the file, either with a PowerPoint client or with Office
Web Applications. These capabilities can help end users visually find the expected content.
Figure 17-3 shows an example.

View in browser — By using Office Web Applications, Office files can be opened in the
browser, without installing the thick client on the computer.

Visual Best Bets — Best Bets are well-known from MOSS 2007, and can also be found in
SharePoint 2010. But with FAST Search, you also can define Visual Best Bets, which are pictures
or videos that are Best Bets for several keywords.

Deep refiners with counts — The Shallow Refinement Panel is also available in SharePoint 2010
Search with the capability of refining results by the most important metadata. However, only
FAST Search provides the capability of result refining on metadata associated with all results.
Moreover, FAST Search provides more customization capabilities, and shows counts for each of
the refiners.

User Context from User Profiles — User Profiles might store a lot of information about each
user, and SharePoint 2010 provides some very powerful social capabilities based on these profiles.
From a Search perspective, results can be targeted by contextual user information.

User Contexts can be built by using User Profile properties, so that they make sub-groups of users, and can be associated with the following:
·         Keywords
·         Best Bets
·         Visual Best Bets
·         Document promotion/demotion
·         Sorting on any property — Each property can be the base of sorting, configured in the “Sort
by” field.
·         Similar Search — With this link for each result, users can get a new result set based on the
search of the selected search result item.
·         Broader, better language support — FAST Search supports language-specific word breaking
and stemming (via FAST lemmatization by reduction), spellcheck, and antiphrasing.
·         Richer query language — In FAST Search, custom queries can be set up using the native query
language for FAST. This provides a complete toolbox, even in the case of advanced queries.
For administrators, FAST Search Server 2010 is a highly capable and easy-to-manage search engine
that offers the following:
·         Extreme scale-out up to more than 500 million items
·         A content processing pipeline
·         Entity extraction
·         Tunable relevance ranking
·         Easy setup of User Context, Visual Best Bets, promotion/demotion
·         Easy-to-configure sorting and refinement


Monday, December 12, 2011

SharePoint 2010 : Missing DNS Server while doing Alternet Access Mapping

While I was trying to install an extranet environment on one of my servers I could not find the DNS Server under Start > Administrative Tools.

DNS server can be installed and then configured to support AlterNet Access Mapping.

I installed it by following the below mentioned steps:


You can install a DNS server from the Control Panel or when promoting a member server to a domain controller (DC) (Figure A). During the promotion, if a DNS server is not found, you will have the option of installing it.

Figure A

Domain controller

To install a DNS server from the Control Panel, follow these steps:

• From the Start menu, select
Control Panel
Administrative Tools
Server Manager.

• Expand and click Roles (Figure B).

• Choose Add Roles and follow the wizard by selecting the DNS role (Figure C).

• Click Install to install DNS in Windows Server 2008 (Figure D).

Figure B

Expand and click Roles

Figure C

DNS role

Figure D

Install DNS

and that's all.


Friday, December 9, 2011

SharePoint 2010 - How to do User Profiles Synchronization

The following steps should be followed while doing User Profiles Synchronization with Active Directory for a new SharePoint 2010 installation or for existing SharePoint 2010 installation.

1. Go to Central Administration -> Manage Service Applications -> User Profile Service Application settings. Select Configure Synchronization Connections.

2. Click Create New Connection button.

3. In the Type dropdown select Active Directory. Specify service account that has access to Active Directory and click Populate Containers to select objects that you want to import from specified Active Directory.

4. When the new connection is created go to Edit Connection Filters action screen.

5. In our case we want to synchronize only active user accounts. So we add Exclusion Filter for Users as Attribute = userAccountControl, Operator = Bit on equal, Filter = 2. Which is exactly the the same as LDAP query (!(userAccountControl:1.2.840.113556.1.4.803:=2))

Then click Add:

6. When the Exclusion Filter appears click OK to save settings.

7. Start Profile Synchronization.

8. Wait till it's done and then look at the imported profiles to check.


SharePoint PowerShell: Delete old versions of documents and items

Project Requirements:

Most of the doucments were having lots of versions so the need was to remove all the existing versions except the latest version.

You can change this script to complete all the operation at one time means for all the libraries and lists under a web or all the site collections or all the web applications with in a farm.

The following script will remove all the existing versions of the documents except latest one.
PowerShell Command Prompt:

get-spWeb http://xyz-vm:1000/
ForEach-Object {ForEach($_.list in $_.Lists){If($_.EnableVersioning -eq $True){if($_.Title -eq "Shared Documents"){Write-host "List:"$_.Title "- List ID"$_.Id;$_.MajorVersionLimit = 1;$_.Update();ForEach($_.item in $_.items){$_.item.URL;$_.update()}}}}}

http://xyz-vm:1000 - Replace with your web name
Shared Documents - Replace with your list or library name
MajorVersionLimit = 1 - Change 1 to your specific limit