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


Install-DbaWatchUpdate

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.

Screenshots

Examples

To add the scheduled task needed by Watch-DbaUpdate

Install-DbaWatchUpdate

Get-Help

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