Database Development

Passing in multiple instances into the dbatools command GET-DBADBFILE

I am attempting to gather all of the dbfile information on all of our sql instances in one of our environments. It is a fairly large environment and would be tedious to perform one instance at a time. I thought there would be an easy way to do this with Powershell but I seem to […]


Only Parallel, Queue, and IgnoreNew are supported right now. How to enable “stop the existing instance” [duplicate]

This question already has an answer here: Powershell New-ScheduledTaskSettingsSet 1 answer PowerShell unable to use enum MultipleInstances Steps to reproduce $a = New-ScheduledTaskSettingsSet -MultipleInstances StopExisting Expected behavior The task’s multiple instances policy is set to kill existing tasks before starting another instance. Actual behavior value “StopExisting” to type “Microsoft.PowerShell.Cmdletization.GeneratedTypes.ScheduledTask.MultipleInstancesEnum”. Error: “Unable to match the identifier […]