File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -45,20 +45,9 @@ If you encounter an execution policy error when running the script:
4545
4646This error indicates that the current execution policy on your system is preventing the script from running.
4747
48- 1 . Check your current execution policy:
48+ 1 . Set the execution policy to Bypass for the current powershell session :
4949``` shell
50- Get -ExecutionPolicy
50+ Set -ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
5151```
52- Note the current value to restore it after completing the diagnostic collection.
5352
54- 2 . Temporarily set the execution policy to Bypass:
55- ``` shell
56- Set-ExecutionPolicy -ExecutionPolicy Bypass
57- ```
58-
59- 3 . Run the log collection script and complete the diagnostic process.
60-
61- 4 . Restore the original execution policy:
62- ``` shell
63- Set-ExecutionPolicy -ExecutionPolicy < previous-value>
64- ```
53+ 2 . Run the log collection script and complete the diagnostic process.
You can’t perform that action at this time.
0 commit comments