DSCResources/ooTemp/ooTemp.schema.psm1
Configuration ooTemp { Import-DscResource -ModuleName xSystemSecurity -ModuleVersion 1.5.0 #region Add a C:\Temp File 'CreateTempDirectory' { DestinationPath = 'C:\Temp' Ensure = 'Present' Type = 'Directory' } xFileSystemAccessRule 'GrantAccessToTempDirectory' { Path = 'C:\Temp' Identity = 'EVERYONE' Rights = @('FullControl') DependsOn = '[File]CreateTempDirectory' } #endregion } |