A Child's Technology Blog
Monday, September 15, 2014
Powershell to find Orphaned Databases
To get a list of
orphaned databases :
Get-SPDatabase | where {$_.exists -eq $false}
To delete the orphaned databases :
Get-SPDatabase | where {$_.exists -eq $false} | foreach {$_.delete()}
Hope this helps you
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.