Test-SPContentDatabase returns no results

Posted on 2011-02-16
Last Modified: 2012-06-27
There is nothing displayed when running Test-SPContentDatabase powershell cmdlet. When saving the result to htm file it is also empty. What am I doing wrong?

This is what I do:
Test-SPContentDatabase –name WSS_Content –WebApplication http://demo1 -serverinstance demo2\testdbase | ConvertTo-Html | Out-file c:\TestSPContent.htm
Question by:MisUszatek
  • 2

Accepted Solution

EagleUK earned 250 total points
ID: 34911372
Check your syntax. I believe that -serverinstance should be the SQL server name and
-databasecredentials should have the UserID and password

Author Closing Comment

ID: 34974005
Didn't solve the issue.

Expert Comment

ID: 34974462
Try this:

Test-SPContentDatabase –name WSS_Content –WebApplication http://demo1 -serverinstance demo2 | ConvertTo-Html | Set-Content c:\TestSPContent.htm

Expert Comment

ID: 36035751
No this does not work for me. The file TestSPContent.htm is empty.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now