Microsoft.Sharepoint.PowerShell not installed on your computer
Hi,
I need your help.
I am writing the powershell script to talk to sharepoint.
The script takes two parameters first one is the IP address of server or servername and second parameter is the config file.
The script checks if the Servername or IPAddress is correct . The script needs to be run from Centeral Admin or Web Front Ends.
User is asked for Login and password of the Server. If it's incorrect then error is displayed to user.
Then List in the config file is checked to see if there are any duplicates entries.
If duplicates are found error is displayed to the user.
Can any body please help me writing the script.
I am new to sharepoint and powershell.
I am using PowerGUI editor to write the script and i am using get-spweb function to check if site exists or not.
I tried to load assembly on the top using command
[System.reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
I am getting the error.
Microsoft.Sharepoint.Powershell is not installed on your machine.
I am only having PowerGUI installed on my machine. I have also Visual Studio 2008, Sql server 2008 and Sharepoint Server 2007 on my machine.
Please let me know what other softwares i need on my system to write the script and execute it.
Thanks
Jaspreet Singh
November 11th, 2010 8:36am
Hi
I think powershell for sharepoint is available in2010 version not in 2007 version.Destin -MCPD: SharePoint Developer 2010, MCTS:SharePoint 2007 Application Development
Free Windows Admin Tool Kit Click here and download it now
November 14th, 2010 8:44am
Hi Jaspreet,
Thank you for your post.
In order to use SharePoint.PowerShell you must have the PowerShell installed on the Server in your environment and do some settings. Here are two great pages that
explain how to use SharePoint 2007 and SharePoint 2010 with PowerShell Remoting:
2007:
http://www.sharepointdevwiki.com/display/public/Getting+started+with+PowerShell+and+SharePoint
2010:
http://blogs.msdn.com/b/opal/archive/2010/03/07/sharepoint-2010-with-windows-powershell-remoting-step-by-step.aspx?wa=wsignin1.0
Hope this helps.
Regards.
November 15th, 2010 1:37am