Home

Content database existing in Central admin but invisible in PowerShell Cmdlet

%3CLINGO-SUB%20id%3D%22lingo-sub-1392140%22%20slang%3D%22en-US%22%3EContent%20database%20existing%20in%20Central%20admin%20but%20invisible%20in%20PowerShell%20Cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392140%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22body%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20have%20a%20strange%20behaviour%20in%20my%20Shrepoint%202016%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20application%20working%20fine%20with%20its%20content%20database%2C%20in%20fact%20in%20the%20Central%20admin%20-%26gt%3B%20Application%20management%20-%26gt%3B%20Databases%20-%26gt%3B%20Manage%20content%20databases%2C%20the%20screen%20shows%20a%20correct%20association%20between%20the%20webapplication%20and%20the%20content%20db.%3C%2FP%3E%3CP%3EAlso%20the%20application%20is%20correctly%20responding%20over%20the%20web.%3C%2FP%3E%3CP%3ENevertheless%20if%20I%20try%20to%20get%20the%20application%20content%20databases%20from%20PS%20I%20get%20null%20(Get-SPWebApplication%20XXXX%20%7C%20select%20ContentDatabases)!%3C%2FP%3E%3CP%3EAnd%20also%20if%20I%20list%20the%20content%20databases%20from%20PS%20I%20don't%20get%20that%20one%20in%20the%20list%20(Get-SPContentdatabases%20%7C%20select%20name%2C%20WebApplication).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20is%20it%20possible%3F%20What%20can%20I%20do%20to%20fix%20the%20situation%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EP.S.%20The%20farms%20hosts%20other%20webapplications%2Fsitecollections%20too%2C%20but%20for%20those%20all%20OK%3A%20their%20content%20databases%20are%20correctly%20listed%20both%20in%20Central%20admin%20and%20in%20Powershell%20CmdLet%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1392140%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Hello,

I have a strange behaviour in my Shrepoint 2016:

 

I have an application working fine with its content database, in fact in the Central admin -> Application management -> Databases -> Manage content databases, the screen shows a correct association between the webapplication and the content db.

Also the application is correctly responding over the web.

Nevertheless if I try to get the application content databases from PS I get null (Get-SPWebApplication XXXX | select ContentDatabases)!

And also if I list the content databases from PS I don't get that one in the list (Get-SPContentdatabases | select name, WebApplication).

 

How is it possible? What can I do to fix the situation?

 

P.S. The farms hosts other webapplications/sitecollections too, but for those all OK: their content databases are correctly listed both in Central admin and in Powershell CmdLet

 

Thanks!