Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Grani_SymbolicLink.psm1
Grani_SymbolicLink.schema.mof
README.md
cSymbolicLink.png

README.md

Grani_SymbolicLink

DSC Resource to configure SymbolicLink.

Resource Information

Name FriendlyName ModuleName
Grani_SymbolicLink cSymbolicLink GraniResource

Test Status

See GraniResource.Test for the detail.

Method Result
Pester pass
Configuration pass
Get-DSCConfiguration pass
Test-DSCConfiguration pass

Intellisense

Sample

  • Create Symbolic Link.
configuration present
{
    Import-DscResource -ModuleName GraniResource
    cSymbolicLink hoge
    {
        SourcePath = "C:\Logs\DSC"
        DestinationPath = "C:\DSC"
        Ensure = "Present"
    }
}
  • Remove Symbolic Link.
configuration absent
{
    Import-DscResource -ModuleName GraniResource
    cSymbolicLink hoge
    {
        SourcePath = "C:\Logs\DSC"
        DestinationPath = "C:\DSC"
        Ensure = "Absent"
    }
}

Tips

SourcePath must exist beforehand.

In this Resource, Source Path must exist before configuration apply to the node.