Invoke-sqmUpdateStatistics
Performance sqmSQLTool v1.8.2+
Updates statistics in one or more databases.

Examples

Invoke-sqmUpdateStatistics -Database 'SalesDB' -SamplePercent 10
Invoke-sqmUpdateStatistics -Database 'SalesDB' -SamplePercent 10
Invoke-sqmFormatDrive64k -DriveLetter D
Invoke-sqmFormatDrive64k -DriveLetter D

    Checks drive D: and formats it with 64 KB clusters if needed.
    Data is backed up to C:\System\DriveBackup first.
Invoke-sqmFormatDrive64k -DriveLetter E -BackupPath "C:\Backup\DriveTemp" -Force
Invoke-sqmFormatDrive64k -DriveLetter E -BackupPath "C:\Backup\DriveTemp" -Force

    Same as above, without confirmation prompt, using a different backup path.
Invoke-sqmFormatDrive64k -DriveLetter D -WhatIf
Invoke-sqmFormatDrive64k -DriveLetter D -WhatIf

    Simulates the entire process without making any changes.