Skip to content

Commit a29b5b5

Browse files
Initial version of filesystem resource
1 parent 725db30 commit a29b5b5

File tree

10 files changed

+903
-0
lines changed

10 files changed

+903
-0
lines changed

build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ if (!$SkipBuild) {
262262
"osinfo",
263263
"powershell-adapter",
264264
"process",
265+
"resources/fs",
265266
"runcommandonset",
266267
"tools/dsctest",
267268
"tools/test_group_resource",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Example configuration mixing native app resources with classic PS resources
2+
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
3+
resources:
4+
- name: check for CrowdStrike driver
5+
type: Microsoft.Windows/Driver
6+
properties:
7+
name: CSAgent
8+
9+
- name: check if faulty driver of CrowdStrike exists under system32\drivers
10+
type: Microsoft.DSC/FileSystem
11+
properties:
12+
path: "[path(systemRoot(), 'windows', 'system32', 'drivers', 'crowdstrike', 'C-00000291-00000000-00000026.sys')]"
13+
hash: '6454cc4779c1c8387c547099181cfcbecc17401fb22750431c15a3b02f8243ea'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Example configuration mixing native app resources with classic PS resources
2+
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
3+
resources:
4+
- name: check if faulty driver of CrowdStrike exists under system32\drivers
5+
type: Microsoft.DSC/FileSystem
6+
properties:
7+
path: "[path(systemRoot(), 'windows', 'system32', 'drivers', 'crowdstrike', 'C-00000291-00000000-00000026.sys')]"
8+
_exist: False
9+
hash: '6454cc4779c1c8387c547099181cfcbecc17401fb22750431c15a3b02f8243ea'

0 commit comments

Comments
 (0)