I was assigned a script to create a POWERSHELL DSC script The exercise is: Your task is to design and implement a generic PowerShell DSC script for deploying and running any executable as a Windows Service. I started writing a configuration file But for some reason the script didn't run well.
Configuration helloworld
{
Node localhost
{
script SayHello
{
GetScript = { @{} }
TestScript = { $false }
SetScript = { wite-verbose "Hello World" }
}
}
}
Helloworld
Start-DscConfiguration -Wait -Verbose -Path .\HelloWord