stsadm

Sharepoint: executing stsadm from a timer job + SHAREPOINT\System rights

Hi, I have an unusual situation in which I need a sharepoint timer job to both have local administrator windows privileges and to have SHAREPOINT\System sharepoint privileges. I can get the windows privileges by simply configuring the timer service to use an account which is a member of local administrators. I understand that this is not...

How can I automate the process of deploying an InfoPath Form to SharePoint Server 2007?

It is a real pain to deploy my InfoPath 2007 Forms from the designer into our development environment's SharePoint server. All of our forms require "full trust" since they include business logic written in C#. Here are the manual steps: 1) Run the "Publish Form" wizard in InfoPath, specifying the target site to publish to and location...

SharePoint site definitions not showing up in template list -- why?

I have some custom SharePoint site definitions that are deployed via SharePoint wsp solution packages. They appear to work fine. I can deploy them fine via the stsadm command line, and my C# code running in some features can also deploy sites based on them. My webtemp.*.xml files appear to be correctly placed in the 12\1033\XML folde...

SharePoint stsadm addsolution - fails with permission based error (object ref)

Attempting to deploy a MOSS solution to a UAT server from dev server for the first time. On executing this command stsadm -o addsolution -filename xxx I get a "Object reference not set to an instance of an object" Based on these links: (and others): [http://social.msdn.microsoft.com/forums/en-US/sharepointdevelopment/thread/63f0f95d...

Best project format for VS2005 + SharePoint deployment?

First, let me use one sentence to let out some frustration: My god, developing for SharePoint is a f-ing mess! OK, sorry, let me focus in on 1 specific scenario. I've developed (VS2005) some functionality that works if I deploy it as a DLL on a SharePoint (MOSS2007) server. Now I'm trying to identify the best way to package it as a d...

Using STSADM to export and import site collection

Hi I'm having an issue when trying to import an existing export using stsadm. Having succesfully exported the site collection, I then create a new blank site. When I run the import command, it runs for a while, then completes with the following error: 01/28/2009 13:04:28.84 STSADM.EXE (0x3F54) 0x1D74 Windows Shar...

stsadm differential backups when directories are renamed?

Hi there, currently I have a full backup running daily in SharePoint. The automated process for further copying, renames the full backup directory to backup_((date in yyyymmdd))_full. I'd like to rework to a daily incremental/weekly full schedule, but the differentials can't seem to find the last full backup to work with. I was thinki...

psexec inside visual studio

Hi there, I've been trying to get psexec to run executables on remote machines from custom build tasks in visual studio. All of these commands work from the command line but running it from an application seems to be a problem. Some commands work, on other psexec hangs and consequently so do msbuild and visual studio 2005. I'm calling S...

SharePoint - find the sitetemplate value of a WSP template?

I'm trying to script the creation of sites for the fab 40 Microsoft SharePoint templates. I'm having trouble finding the value for the sitetemplate parameter for the stsadm command to create the sites. e.g.: stsadm -o createsite -url http://Test/sites/Team_Site **-sitetemplate STS#0** -title "Team Site" ... Is there a command I can ...

SharePoint Table of Contents Web Part and export/import

After moving a SharePoint MOSS site using stsadm export/import I have found some problems with the Table of Contents Web Part. If I click the Heading of one of the sections in the Table of Contents web part, for example 'Documents' the page errors as it is still trying to look at a sub-site url from the site that I exported from. So in...

Sharepoint import version error

We have a SharePoint server that is version something like 12.0.4 and we are trying to import a site collection that was exported from another SharePoint server. The version there is somthing like 12.0.0. We have the export but we no longer have access to the server. How do we import the site from a lower version into a higher version...

Proper stsadm commands to update SharePoint Solution/Feature

What are the proper stsadm commands in sequence to force an upgrade to a SharePoint solution. I have tried C:>"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o deploysolution -name "MySolution.wsp" -immediate -allcontenturls -allowGacDeployment -allowCasPolicies -force followed by ...

STSADM Command for Creating a Web Application

i'm scripting (as much as possible) a MOSS 2007 environment migration. i'm able to get most of it done using a batch file of STSADM commands, however, i'm unable to find an STSADM command to create a web application. Does one exist? ...

SharePoint Solution Package Deploy Random Failures

I keep seeing this error sporadically during solution deployment and/or feature activation... Copying of this file failed . This operation uses the SharePoint Administration service (spadmin), which could not be contacted. If the service is stopped or disabled, start it and try the operation again. The following is the PowerShell scri...

Stsadm export hangs after sometime

I am trying to export a SharePoint site using stsadm, but everytime I start the process it hangs at a particular point in the export process, it always hangs exporting a particular list item. But if I delete the list item the export hangs at the previous item. I have waited for mre tan 10 hours for the export to complete but it does no...

How do I delete a sharepoint group that has arabic characters in the title?

I have a sharepoint group that has arabic characters in the title. The site has been deleted, and I need to remove the group. When I use the GUI, I get this error message: Error Code: 500 Internal Server Error. The server denied the specified Uniform Resource Locator (URL). Contact the server administrator. (12202) When I use st...

Is it possible to export a site definition in MOSS/Sharepoint using STSADM?

Is it possible to export a site definition (NOT a site template) using stsadm? I'm looking for a way of getting an export of ONET, WEBTEMP and any required features. ...

SharePoint LDAP filtering of People Picker users

Hi On my WSS server I have run the following stsadm command to filter the people picker results: stsadm.exe -o setproperty -url http://myserver -pn "peoplepicker-searchadcu stomfilter" -pv "(memberOf=CN=SharePoint,OU=AccessGroups,DC=contosio,DC=local)" My WSS sites are all used by different groups of users. Whenever I create a new si...

sts adm command for MOSS 2007

I'm looking for the stsadm command that will list all site collections and their size on disk. Thanks. ...

stsadm addcontentdb - add content database from sp1 to sp2 environment?

I'm trying to add a content database from a sp1 environment to a sp2 environment, but I am getting the error, Login failed for user "username". Reason: Not associated with a trusted SQL Server connection I've tried all accounts, from Farm Admin, Web app account, to SQL Admin Method's are both true from here: http://support.microsoft....