Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active December 19, 2015 13:43
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 guitarrapc/3e282fd441e2a3ba17b4 to your computer and use it in GitHub Desktop.
Save guitarrapc/3e282fd441e2a3ba17b4 to your computer and use it in GitHub Desktop.
Invoke-DscResource -Name File -Method Get -ModuleName "PSDesiredStateConfiguration" -Property @{
DestinationPath = "d:\hoge\DirectAccess.txt";
Contents = 'This file is create by Invoke-DscResource'
}
Invoke-DscResource -Name File -Method Set -ModuleName "PSDesiredStateConfiguration" -Property @{
DestinationPath = "d:\hoge\DirectAccess.txt";
Contents = 'This file is create by Invoke-DscResource'
}
Invoke-DscResource -Name File -Method Test -ModuleName "PSDesiredStateConfiguration" -Property @{
DestinationPath = "d:\hoge\DirectAccess.txt";
Contents = 'This file is create by Invoke-DscResource'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment