Skip to content

SQL Defaults Check #1

Description

@skullkiller

Hi

First of all, thanks for sharing the code.

Some suggestions to the script:

  • Get-CIMInstance predicts the use of sessions, so to reduce authentication overhead you could use Get-CIMSession and use that
  • Get-Service status can be joined with equivalent Win32_Service call and then Pester the resulting properties separately
  • Both services can be queried at the same time
  • Get-CIMSession can be added in the server connectivity to check for server connectivity
  • Invoke-Command should also be tested at this level for WinRM staus (I think there are other ways to check through CIM)
  • You forgot named instances :P

I know this is just a community sample and as such you might have this implemented in your own scripts, but as "The" SQL Server guy to go on PowerShell :) it would be great that the first 5 could reach the community.

Cheers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions