Skip to content

Instantly share code, notes, and snippets.

@kerslake
Created September 14, 2015 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerslake/a6f43ed7a0b7dff8ff52 to your computer and use it in GitHub Desktop.
Save kerslake/a6f43ed7a0b7dff8ff52 to your computer and use it in GitHub Desktop.
Configuration FileResourceDemo
{
Node "localhost"
{
File CreateFile {
DestinationPath = 'C:\Temp\Test.txt'
Ensure = "Present"
Contents = 'Hello World!'
}
Log AfterDirectoryCopy
{
# The message below gets written to the Microsoft-Windows-Desired State Configuration/Analytic log
Message = "Finished running the file resource with ID CreateFile"
DependsOn = "[File]CreateFile" # This means run "CreateFile" first.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment