Friday, July 6, 2012

sharepoint powershell missing shortcut

This is the one more issue when we work with sharepoint powershell.

Issue : When you run sharepoint powershell command for the first time. Some times you will get an error saying that "Missing shortcut".

Here is the screenshot of the same :

Resolution :

1. Start -> Microsoft sharepoint 2010 products -> Sharepoint 2010 management shell.

2. Right click on this go to properties.

3. In Shortcuts tab change the Target value to %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit add-pssnapin microsoft.sharepoint.powershell

<< This required admin control on the server >>

<< Adding this snap-in you can do manually by running windows powershell also >>

4. Save and close the wizard.

Now Open your Sharepoint powershell will works fine.

Thank you !!

1 comment: