• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1767
  • Last Modified:

Test-SPContentDatabase returns no results

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
0
MisUszatek
Asked:
MisUszatek
  • 2
1 Solution
 
EagleUKCommented:
Check your syntax. I believe that -serverinstance should be the SQL server name and
-databasecredentials should have the UserID and password
0
 
MisUszatekAuthor Commented:
Didn't solve the issue.
0
 
EagleUKCommented:
Try this:

Test-SPContentDatabase –name WSS_Content –WebApplication http://demo1 -serverinstance demo2 | ConvertTo-Html | Set-Content c:\TestSPContent.htm
0
 
ps664Commented:
No this does not work for me. The file TestSPContent.htm is empty.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now