Invoke-sqmSignModule
Deployment sqmSQLTool v1.8.2+
Signs all PowerShell script files in a module directory using Set-AuthenticodeSignature.

Examples

# 1. Sign with a specific certificate from the store
# 1. Sign with a specific certificate from the store
    Invoke-sqmSignModule -ModulePath "C:\Dev\MyModule" `
        -CertificateThumbprint "AB12CD34EF56..."
# 2. Sign with a PFX file
# 2. Sign with a PFX file
    $pwd = ConvertTo-SecureString "secret" -AsPlainText -Force
    Invoke-sqmSignModule -ModulePath "C:\Dev\MyModule" `
        -CertificatePath "C:\Certs\CodeSign.pfx" -CertificatePassword $pwd
# 3. Auto-detect certificate (no parameters needed if cert is in store)
# 3. Auto-detect certificate (no parameters needed if cert is in store)
    Invoke-sqmSignModule -ModulePath "C:\Dev\MyModule"
# 4. WhatIf dry run - show which files would be signed
# 4. WhatIf dry run - show which files would be signed
    Invoke-sqmSignModule -ModulePath "C:\Dev\MyModule" -WhatIf
# 5. Force re-sign all files, even those already signed
# 5. Force re-sign all files, even those already signed
    Invoke-sqmSignModule -ModulePath "C:\Dev\MyModule" -Force
Copy-sqmLogins -Source 'SQL01' -Destination 'SQL02'
Copy-sqmLogins -Source 'SQL01' -Destination 'SQL02'

    Copies all non-system logins. Policy is disabled/re-enabled,
    AD check and orphan repair run automatically.
Copy-sqmLogins -Source 'SQL01' -Destination 'SQL02' -AdjustAuthMode -RestartServiceIfRequired
Copy-sqmLogins -Source 'SQL01' -Destination 'SQL02' -AdjustAuthMode -RestartServiceIfRequired

    Copies all logins and switches the target server to Mixed Mode if needed.
    Automatically restarts the SQL service if required.
Copy-sqmLogins -Source 'SQL01' -Destination 'SQL02' -Login 'App_*' -Force
Copy-sqmLogins -Source 'SQL01' -Destination 'SQL02' -Login 'App_*' -Force

    Copies only logins starting with 'App_' and overwrites existing ones.
Copy-sqmLogins -Source 'SQL01' -Destination 'SQL02' -DisablePolicy $false -WhatIf
Copy-sqmLogins -Source 'SQL01' -Destination 'SQL02' -DisablePolicy $false -WhatIf

    Simulates the operation without policy handling.