Quick post on how to set the page verification level in sql server with powershell. This script will set all the user database page verification option to CheckSum if they’re not already set that way. It’s best practice (and the safest option) to have this set to CheckSum. For a more in-depth description of page verification, see here. This uses SQLPSX.
Import-Module SqlServer Get-SqlDatabase -sqlserver $(Get-SqlServer -sqlserver 'ServerName' -username 'UserName' -password 'Password') | where{-not $_.IsSystemObject} |%{ if($_.PageVerify -ne [Microsoft.SqlServer.Management.Smo.PageVerify]::Checksum){ $_.PageVerify = [Microsoft.SqlServer.Management.Smo.PageVerify]::Checksum $_.Alter(); } }