Skip to content

Commit e0a71a8

Browse files
authored
Merge pull request #820 from Gijsreyn/fix-bypass-wmi
Add executionpolicy WMI
2 parents f0892db + 49eacaf commit e0a71a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wmi-adapter/wmi.dsc.resource.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"-NoLogo",
1515
"-NonInteractive",
1616
"-NoProfile",
17+
"-ExecutionPolicy",
18+
"Bypass",
1719
"-Command",
1820
"./wmi.resource.ps1 List"
1921
]
@@ -26,6 +28,8 @@
2628
"-NoLogo",
2729
"-NonInteractive",
2830
"-NoProfile",
31+
"-ExecutionPolicy",
32+
"Bypass",
2933
"-Command",
3034
"$Input | ./wmi.resource.ps1 Get"
3135
],
@@ -37,6 +41,8 @@
3741
"-NoLogo",
3842
"-NonInteractive",
3943
"-NoProfile",
44+
"-ExecutionPolicy",
45+
"Bypass",
4046
"-Command",
4147
"$Input | ./wmi.resource.ps1 Validate"
4248
]

0 commit comments

Comments
 (0)