Loading...

Tuesday, February 1, 2011

How to enable Powershell’s Integrated scripting environment for running Sharepoint 2010

Run following commands on powershell
Import-Module ServerManager; Add-WindowsFeature PowerShell-ISE
alternatively
Search for server manager and add this feature as follows


Configuring ISE for sharepoint
• Copy or type the following text in the Command Pane (View > Go to Command Pane) and press ENTER:


# Creates a local user PowerShell ISE profile

if (!(test-path $profile ))

{new-item -type file -path $profile -force}

# opens it for edit

psEdit $profile

• Running these commands will open a new script file in the Script Pane. Type the following commands in the script file and save it by clicking the Save button on the toolbar:

# Copy the following into the new file and save it

cd 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration'

.\SharePoint.ps1

cd \

From now on, the SharePoint cmdlets will automatically load every time you start Windows PowerShell ISE as the same user. If you are still having problems using it, you may need to run it as an Administrator by right-clicking the shortcut and selecting Run as administrator (you can also force it to run as an administrator every time by right-clicking the shortcut, selecting Properties and then the Advanced button).

Tuesday, January 11, 2011

How to Create the Sharepoint 2010 Projects Where MOSS 2010 is not Installed?

Hello EveryOne,

        This article is just for knowledge sake and  to know about managing on machine where sharepoint 2010 is not installed.
If you have installed VS2010(visual studio ultimate) ,& Navigated as  Start ->VS2010 ->Run as administrator->New Project->Sharepoint 2010. You will get the popup that you can not create the sharepoint projects as MOSS 2010 is not installed.


But dont fear,If there is Will , there is Way :-)
Follow me as follows
1)Start -->Run-->RegEdit-->Select HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0

and Export the file
and Import on  machine where SP2010 is not installed.
2)Now you wont get the popup but it will ask for the url in Wizard.
still go ahead. and put the IP address of the remote server or any dummy url.
and dont click on validate url  and click on finish

3)With this settings you can just  create the wsp but once you click on the Deploy the project
then again You have to face the same error that 'Sharepoint is not installed on local machine'

4)You can put your commands in a PowerShell script (.ps1) file and pass the path of the script file to PowerShell.exe.  Then you can just put this command in your post build event to run your PowerShell script after you compile

5)This will hold the command which will be executing on the remote machine where Sharepoint 2010 is installed.
to enable the remote execution of powershell commands follow the steps as given in this blog

6)If you get 'Access Denied error' while execution of PS commands, then check if Active directory domain services is enabled on Target machine


Thursday, January 6, 2011

How to Import CSV files to Term Store in Sharepoint 2010

1)Go to the term strore as directed in following Image


Click on view sample Import file  and Import it back.
This will generate the terms for tagging
Next I will demonstrate  how to use tagging..

2)Create the list with column of Type Managed Metadata as directed as following Image
3)When List is created and You add/update new items this column will have the ability to Select values from term store


Monday, December 6, 2010

Different Security Issues that can be raised with SharePoint Site

1)Cross site request Forgery

2)Client Side Cookies refernces

3)Missing secure attribute  in encrypted  SSL Cookies

and some more

I will elaborate it soon..keep reading ..

Thursday, November 25, 2010

Synchronizing User Profiles With Site Collections In Webapplication

Command for Synchronizing User Profiles With Site Collections In Webapplication

To Modify the user profile , Go to Shared Service Provider site --> User Profile and Properties-->Edit User info

run the following commands.

STSADM -o Sync -synctiming M:1


STSADM -o sync -sweeptiming M:1

After 1 minute login with modified User

Wednesday, November 17, 2010

QuickLinks in Sharepoint

In this post , I will enlist the Quick links in Sharepoint.

While resolving any bug or developing any functionality you should keep hawk eye on urls generating in browser .Its like a clue to a issue, many times.

To Get the Webparts maintenance page

http://server/pages/default.aspx becomes http://server/pages/default.aspx?contents=1

To Get ServerTemplateID
http://server/_vti_bin/owssvr.dll?Cmd=ExportList&List=9e7d064f-d9c8-42f0-8a4f-b02c9f4c259f


To Get ContenttypeID
view in browser while modifying content Types
/_layouts/ManageContentType.aspx?ctype=0x010070A9BD7BBA699D48B92FE21F1632CC28.

Some more to be added