dbatools is a free PowerShell module with over 300 SQL Server administration, best practice and migration commands included.

Please note that documentation and command names may be out of date while we work furiously towards 1.0


Only supports Windows 10. Adds the scheduled task to support Watch-DbaUpdate. In order to ensure a PowerShell window does not appear (even for a millisecond), the task must be created with the “Run whether user is logged in or not” setting, which requires administrator privileges.



To add the scheduled task needed by Watch-DbaUpdate



From PowerShell, execute Get-Help Install-DbaWatchUpdate -Detailed for more information on this function.

Source Code

Want to see the source code? View Install-DbaWatchUpdate.ps1 on GitHub

Related commands