SharePoint (2003 thru Online): STSADM
Showing posts with label STSADM. Show all posts
Showing posts with label STSADM. Show all posts

Friday, April 24, 2015

Add the Web Part (.CAB Solution File)


Add the Web Part (.CAB Solution File)

Follow these steps to deploy your Web Part to Office SharePoint Server 2007.


Make sure you are logged into the server with the service account which has permissions to install the web parts.


For ease of deployment, copy the GoogleSearch.cab file to the following location, where Office SharePoint Server 2007 is installed:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin

This should be the same as the location of Stsadm.exe. Ensure that you update the path on your computer if it does not match the default location.


Click Start, click Run, and then type cmd /admin.


Type cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin"


Run the following command to deploy your Web Part:

stsadm -o addwppack -filename GoogleSearch.cab -url http://localhost -globalinstall -force

After the command returns with "Operation completed successfully," run the following command:


iisreset /timeout:0


Go to Solution Management, Deploy the solution to required Web Application.
Activate the feature from the Site Actions >> Site Collection Features
____________________________________________________________

Add, Deploy & Activate the Web Part (.wsp Solution File)

stsadm -o addsolution -filename SharePointVideoPlayer.wsp


stsadm -o deploysolution -name SharePointVideoPlayer.wsp -immediate 
-allowgacdeployment -url "[Site Collection URL]"

stsadm -o activatefeature -name SharePointVideoPlayerfeature -url "[Site Collection URL]" –force

Thursday, June 19, 2014

STSADM


Microsoft Office SharePoint Server 2007 includes a very powerfull tool the Stsadm, stsadm is for command-line administration of Office SharePoint Server 2007/Moss 2007 you can use this sharepoint 2010 also. it can be used for server and sites stsadm can be used by command line or by using batch files or scripts. There are certain operations and certain parameters that are only available by using theStsadm command-line tool.

Where the STSADM is Located
Stsadm is located at the following path on the drive where SharePoint Products and Technologies is installed: %COMMONPROGRAMFILES%\microsoft shared\web server extensions\12\bin. You must be an administrator on the local computer to use Stsadm.Many a times people think of running stsadm.exe commands from any command prompt.  So here is the way:
1. Open command prompt
2. Type in the following command:  @set PATH=C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN;%PATH% 
(This Command does not work on WSS 2.0)

In WSS 2.0
Try CD C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN
and run the below Commands.

3. You can now run the stsadm.exe commands from anywhere in the command prompt
_________________________________________________________________________________
To get the IDs of the Solutions use the below Command

stsadm -o enumdeployments
_________________________________________________________________

To CANCEL the deployment of the Solution use the below Power Shell Command.

stsadm -o canceldeployment -id "ae9d211d-83d2-47c4-a0c0-c6251a423675"
_________________________________________________________________

STUCK ON DEPLOYING

Make sure all deployments are set to DEPLOYING before stopping the services.
MY ENVIRONMENT
Command prompt, run as Admin on WFE and SQL if you are running SSRS integrated mode.
Stop the SharePoint Admin Service
Stop the SharePoint Timer service
1) Run stsadm -o execadmsvcjobs on your CA server.
2) Run stsadm -o execadmsvcjobs on all the farm members that have stsadm.
3) Restart the Timer Service on all farm members.
4) Restart the SharePoint Admin service
That should fix it.