Tag Info

Hot answers tagged

3

In order to perform an Update operation, the following issues/typos should be fixed in the specified example 1) REST endpoint There is a typo in the specified request /_vti_bin/ListData.svc/RSSData?$filterId eq <ItemID> The proper syntax for request is /_vti_bin/ListData.svc/RSSData?$filter=Id eq <ItemID> ,where filter operator is used to ...


3

For every web application you can do the following: Get your timer job definition (SPJobDefinition) from SPWebApplication.JobDefinitions Get the guid: string jobDefID = SPJobDefinition.Id.ToString(); Add the guid in the query string http://srvr/_admin/JobEdit.aspx?JobId=jobDefID


2

You could add PowerShell snap-in in you .ps1 file. But in this case you should have some permissions to sql and SharePoint if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin "Microsoft.SharePoint.PowerShell" }


1

Try this, Test-SPContentDatabase -Name $DbName -WebApplication $urlApp > C:\\TextResults.txt or Test-SPContentDatabase -Name $DbName -WebApplication $urlApp > C:\\TextResults.xml it should create a result file in C drive. Edit Right way, Test-SPContentDatabase -Name $DbName -WebApplication $urlApp | Out-File c:\TestResult.txt Seems like ...


1

Please check this answer: http://stackoverflow.com/questions/5081251/how-can-this-throw-a-nullreferenceexception SPContext.Current doesn't work under Elevated Privileges, so you have to rewrite like in the answer above.



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