Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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