Skip to content

Commit 2028753

Browse files
INstance not server
1 parent 30ece3b commit 2028753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Get-SQLAgentJobOutPutFile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ param
4444
$AttributeCollection.Add($ParameterAttribute)
4545

4646
# Generate and set the ValidateSet
47-
$arrSet = (Get-SQLAgentJob -ServerInstance $Server).Name
47+
$arrSet = (Get-SQLAgentJob -ServerInstance $Instance).Name
4848
$ValidateSetAttribute = New-Object -TypeName System.Management.Automation.ValidateSetAttribute -ArgumentList ($arrSet)
4949

5050
# Add the ValidateSet to the attributes collection

0 commit comments

Comments
 (0)