We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0423f5 commit e674fc7Copy full SHA for e674fc7
public/New-DbaAgentJob.ps1
@@ -250,7 +250,7 @@ function New-DbaAgentJob {
250
251
if ($PSCmdlet.ShouldProcess($instance, "Removing the job $Job on $instance")) {
252
try {
253
- Remove-DbaAgentJob -SqlInstance $server -Job $Job -EnableException -Confirm:$false
+ $null = Remove-DbaAgentJob -SqlInstance $server -Job $Job -EnableException -Confirm:$false
254
$server.JobServer.Refresh()
255
} catch {
256
Stop-Function -Message "Couldn't remove job $Job from $instance" -Target $instance -Continue -ErrorRecord $_
0 commit comments