Test-SPContentDatabase returns no results

Posted on 2011-02-16
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

EagleUK earned 750 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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

777 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