Skip to content

Commit 6f6c5ea

Browse files
authored
Set-DbaAgentJobOutputFile: also report the current output file name (#9646)
1 parent a00a794 commit 6f6c5ea

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

public/Set-DbaAgentJobOutputFile.ps1

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,13 @@ function Set-DbaAgentJobOutputFile {
134134
$jobStep.Refresh()
135135

136136
[PSCustomObject]@{
137-
ComputerName = $server.ComputerName
138-
InstanceName = $server.ServiceName
139-
SqlInstance = $server.DomainInstanceName
140-
Job = $currentJob.Name
141-
JobStep = $jobStep.Name
142-
OutputFileName = $currentOutputFile
137+
ComputerName = $server.ComputerName
138+
InstanceName = $server.ServiceName
139+
SqlInstance = $server.DomainInstanceName
140+
Job = $currentJob.Name
141+
JobStep = $jobStep.Name
142+
OutputFileName = $OutputFile
143+
OldOutputFileName = $currentOutputFile
143144
}
144145
}
145146
} catch {
@@ -148,4 +149,4 @@ function Set-DbaAgentJobOutputFile {
148149
}
149150
}
150151
}
151-
}
152+
}

0 commit comments

Comments
 (0)