Solved

Test-SPContentDatabase returns no results

Posted on 2011-02-16
4
1,659 Views
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
0
Comment
Question by:MisUszatek
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
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
0
 

Author Closing Comment

by:MisUszatek
ID: 34974005
Didn't solve the issue.
0
 
LVL 7

Expert Comment

by:EagleUK
ID: 34974462
Try this:

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

Expert Comment

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

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

816 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

11 Experts available now in Live!

Get 1:1 Help Now