Skip to content

Commit 6fa967b

Browse files
execution policy
1 parent d571c94 commit 6fa967b

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

diagnostics/script.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,9 @@ If you encounter an execution policy error when running the script:
4545

4646
This 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.

0 commit comments

Comments
 (0)