You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 1f43cbbf0 | Install-DbaMaintenanceSolution: change Compress/Verify/CheckSum to ValidateSet string params (#10247) |DONE | Scoped NUL/Verify validation to InstallJobs, added a unit regression test, and corrected the AutoScheduleJobs example.|
Copy file name to clipboardExpand all lines: public/Install-DbaMaintenanceSolution.ps1
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ function Install-DbaMaintenanceSolution {
223
223
>> SqlInstance = "localhost"
224
224
>> InstallJobs = $true
225
225
>> CleanupTime = 720
226
-
>> AutoSchedule = "WeeklyFull"
226
+
>> AutoScheduleJobs = "WeeklyFull"
227
227
>> }
228
228
>> Install-DbaMaintenanceSolution @params
229
229
@@ -324,7 +324,7 @@ function Install-DbaMaintenanceSolution {
324
324
return
325
325
}
326
326
327
-
if ($BackupLocation-eq"NUL"-and$Verify-notin"ForceOff","Remove") {
327
+
if ($InstallJobs-and$BackupLocation-eq"NUL"-and$Verify-notin"ForceOff","Remove") {
328
328
Stop-Function-Message "Verify is not supported when backing up to NUL. Either backup to a different directory or set -Verify to 'ForceOff' or 'Remove'."
0 commit comments