DSCResources/FileServer/FileServer.schema.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Configuration FileServer
{
  param (
    [string] $SharedRoot = "C:\QlikShare",
    [string] $ShareName = "QlikShare"
  )
  Import-DSCResource -ModuleName xSmbShare

  File QlikShare
  {
    Ensure = "Present"
    Type = "Directory"
    DestinationPath = $SharedRoot
  }

  xSmbShare QlikShare
  {
    Ensure = "Present"
    Name   = $ShareName
    Path = $SharedRoot
    FullAccess = "Everyone"
    DependsOn = "[File]QlikShare"
  }
}