Thor Logo dbatools

SqlServerAgent

Copy-DbaAgentServer

Chrissy LeMaire (@cl), netnerds.net

Copy-DbaAgentServer View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS Synopsis Copies all SQL Server Agent objects and server properties between instances. Description Migrates complete SQL Server Agent configuration including jobs, operators, alerts, schedules, job categories, and proxies from one instance to another. This function handles the proper sequence of object creation and also copies server-level Agent properties like job history retention settings, error log locations, and database mail profiles.

Read more