Change Windows Service with DSCv3 #1248
-
|
I have an old DSC configuration and I want to bring this into the modern world DSCv3. But I have a problem to find a Module for Windows Services. As Sample I want to set the SQLBrowserService to Automatic/Running, My idea was: But it looks like PSDscResource is not working with DSCv3. Any hint what I can use there? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I don't think @ThomasNieto released: https://github.com/opendsc/opendsc/tree/main/src/OpenDsc.Resource.Windows.Service, but that's a native command-based DSC resource. Regardless, I'm curious why the |
Beta Was this translation helpful? Give feedback.
-
|
Try this config: $schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
metadata:
Microsoft.DSC:
securityContext: elevated
resources:
- type: PSDesiredStateConfiguration/Service
name: Service
properties:
name: BITS |
Beta Was this translation helpful? Give feedback.
Try this config: