Skip to content

Instantly share code, notes, and snippets.

@vhusker
Created August 26, 2015 11:23
Show Gist options
  • Save vhusker/04a354e686d6735a6ecb to your computer and use it in GitHub Desktop.
Save vhusker/04a354e686d6735a6ecb to your computer and use it in GitHub Desktop.
Resource Key Syntax
Get-DSCResource File -Synatx
File [String] #ResourceName
{
DestinationPath = [string]
[Attributes = [string[]]{ Archive | Hidden | ReadOnly | System }]
[Checksum = [string]{ CreatedDate | ModifiedDate | SHA-1 | SHA-256 | SHA-512 }]
[Contents = [string]]
[Credential = [PSCredential]]
[DependsOn = [string[]]]
[Ensure = [string]{ Absent | Present }]
[Force = [bool]]
[MatchSource = [bool]]
[PsDscRunAsCredential = [PSCredential]]
[Recurse = [bool]]
[SourcePath = [string]]
[Type = [string]{ Directory | File }]
}
Get-DscResource -Module xComputerManagement -Name xComputer -Syntax
xComputer [String] #ResourceName
{
Name = [string]
[Credential = [PSCredential]]
[DependsOn = [string[]]]
[DomainName = [string]]
[PsDscRunAsCredential = [PSCredential]]
[UnjoinCredential = [PSCredential]]
[WorkGroupName = [string]]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment