Tag Info

Hot answers tagged

5

I recently ran into the exact same issue in SP 2013 where my Dev machine had the RTM install and the target server the June CU. We ended up copying the Content Database from SQL directly, reattaching and associating it to a Web Application and it worked flawlessly. It seems the Restore command is no longer backwards compatible and can't be relied to restore ...


4

Checking the list of ststadm operations seems that there is no stsadm command for disabling a timer job. There is only a command to delete a timer job (deletessptimerjob). In that case you are left with two options: Disable the timer job using the UI in Central Administration (Central Administration -> Operations -> Job Definitions) Disable the timer job ...


2

Seems that in the previous action, a site collection reference already has been created somewhere in the web application configuration. Although there’s a reference, the necessary files to render the page aren’t there. There’s also no possibility to remove the existence of the site collection. When you try to do something with the site collection, for ...


2

We had logic that was calling Install-SPSolution twice on different solutions (same behavior observed with stsadm), and then logic for waiting for the deployment to complete. In rare instances, what happened, is that both solutions were attempting to acquire the deployment lock before either thread got the lock; one thread would succeed and one would fail ...


2

Here is the MSDN, basically using(var site = new SPSite(SPContext.Current.Site.ID)) { var webapp = site.WebApplication; webapp.ChangeLogRetentionPeriod = new TimeSpan(1,0,0,0); // meaning 1 day } The code must be executed by a Farm Administrator account, so you might need to do som impersonification in the new SPSite statement, like new ...


2

stsadm cannot do what you are asking unfortunately, however you can achieve the same functionality using SharePoint Designer, which will create a .cmp (which is a cab file by another name) file which you can import using either stsadm or SharePoint Designer as you prefer. Here are some links to SharePoint Designer as well: SharePoint Designer 2007 (works ...


2

plz try with this Export and import a subsite, list, or library: stsadm -o export –url [url of subsite, list, library] –filename D:\spbackup\backup.bak -quiet -overwrite stsadm -o import –url [url of subsite, list, library] –filename D:\spbackup\backup.bak -quiet If the command is entered correctly and you have the permission needed to run the export, ...


1

To query Windows Registry is probably the most reliable way to detect if SharePoint installed (Visual Studio uses this technique). Please follow the article How To: Detect the Installed SKU of SharePoint 2010 for more details. It contains code sample that demonstrates how to retrieve the registry key of the installed SKU of SharePoint Server 2010. ...


1

To get the site id use powershell. Interestingly in my case I can create the powershell object. E.g. $s=Get-SpSite <url> $s.ID Go to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN Then execute STSADM -o deleteconfigurationobject -id <site id> In once case this worked Or you can try deleting $s.Delete ...


1

I am not sure if i am late or not. this error comes for one of the following reasons: Backup SharePoint server version is different than the restore server version The backup file is corrupted The used user account is not having the permission on the content DB for the web application that you want to restore on.


1

do this: open powershell as admin (run as admin): restore-spsite -Identity https://xx/10014628/ -Path D:\SiteCollectionBackups\10014628.bak -Force -Confirm change the D drive to a local drive like C but dont put the file on root like so C:\10014628.bak rather have it within a folder C:\SiteCollectionBackups\10014628.bak should do the trick also like to ...


1

'A failure occurred during the processing of this command. Check diagnostic logs for more information' is in fact "Access Denied error to the User Profile Service Application". TO resolve this issue, Navigate to Manage Service Applications ---> User Profile Service Application Name ----> select Permissions from the ribbon ----> Add your user account ...



Only top voted, non community-wiki answers of a minimum length are eligible