Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. PhilippeC.
    3. Best
    P
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by PhilippeC.

    • RE: Ensure-DscResource and DSC Resource with embedded subclass

      Hello

      Here is two exemple :

      1. one with Carbon module (http://get-carbon.org)
      2. One wit h xSmbshare (From Pwershll Gallery)
        I assumed you have install the module
      Ensure-DscResource
             (
                 ConfigurationKey: Identity,
                 Name: Carbon_Permission,
                 Module: Carbon,
                 Properties: %(Path:$DFSFolder,Identity:$Mydomain\$MyGroup,Permission:FullControl)
             );
      
      
      Ensure-DscResource
         (
             Name: xSmbShare,
             Module: xSmbShare,
             Properties: %(Name:$ShareFolder,Path:$FoldertoShare,ReadAccess:$Mydomain\$MyGroup,FolderEnumerationMode:AccessBased,CachingMode:None)
         );
      

      The Carbon example use as ConfigurationKey the property Identity while in the xSmbShare, the configuraitonKey is the default property (ie, Name)

      I hope to not make a mistake and it will be useful.

      Best Regards
      PhilippeC.

      posted in Support
      P
      PhilippeC.
    • 1 / 1