Microsoft.Sharepoint.PowerShell not installed on your computer

Oct 17, 2010 at 1:28 PM

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 .

If it's not correct then displays the error to the user.

If it's correct , then it ask the user credentials username and password to login.

Sameway if username and password are correct , 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.

Please let me know what other softwares i need on my system to write the script and execute it.

 

Thanks

Jaspreet Singh

 

 

 

 

 

 

 

 

Coordinator
Nov 25, 2010 at 3:19 PM

Dear,

All the PowerShell scripts on this project site are destinated to manage SharePoint farms.

So you need to execute each one on a SharePoint server, not on your desktop.

Have a great day.

Fabrice Romelard [MVP]