Notices: This section not yet converted to new layout. Download stats are rolling back out.

dbachecks (PowerShell Module)

1.1.173

This package skips automatic verification:

Requires PowerShell v5 as a minimum which is why it's failng the Verifier.


This package was approved as a trusted package on 5/22/2019.

dbachecks is a framework created by and for SQL Server pros who need to validate their environments. Basically, we all share similar checklists and mostly just the server names and RPO/RTO/etc change.

This open source module allows us to crowd-source our checklists using Pester tests. Such checks include:

  • Backups are being performed
  • Identity columns are not about to max out
  • Servers have access to backup paths
  • Database integrity checks are being performed and corruption does not exist
  • Disk space is not about to run out
  • All enabled jobs have succeeded

Have questions about development? Please visit our Wiki. Anyone developing this module should visit that Wiki page (after fully reading this readme) for a brief overview.

NOTE: This module requires a minimum of PowerShell v4.

NOTE: This is an automatically updated package. If you find it is out of date by more than a week, please contact the maintainer(s) and let them know the package is no longer updating correctly.

To install dbachecks (PowerShell Module), run the following command from the command line or from PowerShell:

C:\> choco install dbachecks

To upgrade dbachecks (PowerShell Module), run the following command from the command line or from PowerShell:

C:\> choco upgrade dbachecks

Files

Hide
  • tools\.skipAutoUninstaller
  • tools\chocolateyBeforeModify.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $moduleName = 'dbachecks'      # this could be different from package name
    
    $module = Get-Module -Name $moduleName
    if ($module) {
        Write-Verbose "Module '$moduleName' is imported into the session. Removing it."
        Remove-Module -Name $moduleName -Force -ErrorAction SilentlyContinue
        }
    }
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $moduleName = 'dbachecks'  # this may be different from the package name and different case
    
    if ($PSVersionTable.PSVersion.Major -lt 5) {
        throw "$moduleName module requires a minimum of PowerShell v5."
    }
    
    # module may already be installed outside of Chocolatey
    Remove-Module -Name $moduleName -Force -ErrorAction SilentlyContinue
    
    $sourcePath = Join-Path -Path $toolsDir -ChildPath "$modulename.zip"
    $destPath   = Join-Path -Path $env:ProgramFiles -ChildPath "WindowsPowerShell\Modules\$moduleName\$env:ChocolateyPackageVersion"
    
    Write-Verbose "Creating destination directory '$destPath' for module."
    New-Item -Path $destPath -ItemType Directory -Force -ErrorAction SilentlyContinue | Out-Null
    
    Write-Verbose "Extracting '$moduleName' files from '$sourcePath' to '$destPath'."
    Get-ChocolateyUnzip -FileFullPath $sourcePath -Destination $destPath
  • tools\chocolateyUninstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $moduleName = 'dbachecks'
    $sourcePath = Join-Path -Path $env:ProgramFiles -ChildPath "WindowsPowerShell\Modules\$moduleName"
    
    Write-Verbose "Removing all version of '$moduleName' from '$sourcePath'."
    Remove-Item -Path $sourcePath -Recurse -Force -ErrorAction SilentlyContinue
  • tools\dbachecks.zip Show
    md5: FED1DD5A6D51345BC9C84F9E1B4BD627 | sha1: 6A04E21D3A33A7B2E4004BC2206C48F7C97AB06D | sha256: 0444D183E59FE25FF35F52C6C083FDC134D45A8505378C5F8B6E0CC22E5CC3AF | sha512: 987CB0BBCBE736F6C3097C4F04FFE64E07B93972A7F7CB9E4DB450908B3CEE133598501474161CC2C83043BD5326AEE8C9645E3F01DBDC731AE3306402357B83
  • tools\LICENSE.txt Show
    From: https://raw.githubusercontent.com/sqlcollaborative/dbachecks/development/LICENSE
    
    MIT License
    
    Copyright (c) 2017 Chrissy LeMaire
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
    
  • tools\VERIFICATION.txt Show
    VERIFICATION
    Verification is intended to assist the Chocolatey moderators and community in verifying that this package's contents are trustworthy.
    
    To verify the files using the project source:
    
    1. Please go to the project source location (https://github.com/sqlcollaborative/dbachecks) and download the source files;
    2. Build the source to create the binary files to verify;
    3. Use Get-FileHash -Path <FILE TO VERIFY> to get the file hash value from both the built file (from step 1 above) and the file from the dbatools.zip within the package and compare them;
    
    Alternatively you can download the module from the PowerShell Gallery ...
    
        Save-Module -Name dbachecks -Path <PATH TO DOWNLOAD TO>
    
    ... and compare the files from the package against those in the installed module. Again use Get-FileHash -Path <FILE TO VERIFY> to retrieve those hash values.

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

Package Maintainer(s)

Software Author(s)

  • SQL Community Collaborative

Copyright

2017 Chrissy LeMaire

Tags

Release Notes

https://github.com/sqlcollaborative/dbachecks/blob/development/RELEASE.md

Version History

Version Downloads Last updated Status
dbachecks (PowerShell Module) 1.1.172 9 Tuesday, May 21, 2019 approved
dbachecks (PowerShell Module) 1.1.171 32 Friday, April 5, 2019 approved

Discussion for the dbachecks (PowerShell Module) Package

Ground rules:

  • This discussion is only about dbachecks (PowerShell Module) and the dbachecks (PowerShell Module) package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or dbachecks (PowerShell Module), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok