msantino / posh-get-mssql-principal-count

Powershell Script to count total of principal mirror databases in host

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Principal Databases Count

This is a Powershell script to check total of principal mirror databases at current server.

  • It only connect at local server
  • Works for MSSQL Server
  • Connect to server using current active Windows user

Running

Open a POSH session and enable execution policy:

$ Set-ExecutionPolicy RemoteSigned

Run script:

$ posh-get-mssql-principal-count.ps1

Todos

  • Increase use of parameters to allow multiple servers execution
  • Add Night Mode

License

MIT

Free Software, Hell Yeah!

About

Powershell Script to count total of principal mirror databases in host


Languages

Language:PowerShell 100.0%