To be fixed by #11851
Steps to reproduce
None. See #11851 for better understanding.
Expected behavior
No exception will be thrown.
Actual behavior
An exception will be thrown if any previously started dependent service that could be stopped was not stopped after a service was forced to stop.
-or-
An InvalidOperationException will be thrown if the Status of any of ServiceController.DependentServices whose Status was Running or StartPending and whose CanStop was true did not became Stopped or StopPending after a Stop-Service command was executed with the -Force flag for a service.
Environment data
None.
Please start your discussion.
To be fixed by #11851
Steps to reproduce
None. See #11851 for better understanding.
Expected behavior
No exception will be thrown.
Actual behavior
An exception will be thrown if any previously started dependent service that could be stopped was not stopped after a service was forced to stop.
-or-
An
InvalidOperationExceptionwill be thrown if theStatusof any ofServiceController.DependentServiceswhoseStatuswasRunningorStartPendingand whoseCanStopwastruedid not becameStoppedorStopPendingafter aStop-Servicecommand was executed with the-Forceflag for a service.Environment data
None.
Please start your discussion.