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? |
Answered by
ThomasNieto
Nov 10, 2025
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 |
0 replies
|
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 |
1 reply
Answer selected by
ognif
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this config: