2018-08-01 18:52:00.356260 by Unknown

2018-08-01 18:52:00.356260 by Unknown

Author:Unknown
Format: epub
Tags: System Administration, Windows Administration, Desktop Applications, Project Management Software
ISBN: 9781484200179


ServiceDemo

What we are trying to achieve in the preceding example is similar to what we did with the Script resource. We are setting the state of the service to running (see Figure 5-26).

Figure 5-26. Starting AudioSrv using the Service DSC resource

As seen in Figure 5-26 and in the configuration script, setting the State property to Running changes the state of the service on the target node. Similarly, we can set the other properties, such as StartupType and BuiltInAccount, too.

Configuration ServiceDemo {

Node WSR2-1 {

Service ServiceDemo {

Name = "AudioSrv"

State = "Running"

BuiltInAccount = "LocalService"

StartupType = "Automatic"

}

}

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.