File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,14 @@ if (!(Get-Module PSScriptAnalyzer) -and !$testingLibraryUsage)
9
9
# Force Get-Help not to prompt for interactive input to download help using Update-Help
10
10
# By adding this registry key we turn off Get-Help interactivity logic during ScriptRule parsing
11
11
$null , " Wow6432Node" | ForEach-Object {
12
- try
13
- {
14
- Set-ItemProperty - Name " DisablePromptToUpdateHelp" - Path " HKLM:\SOFTWARE\$ ( $_ ) \Microsoft\PowerShell" - Value 1 - Force
15
- }
16
- catch
17
- {
18
- # Ignore for cases when tests are running in non-elevated more or registry key does not exist or not accessible
12
+ try
13
+ {
14
+ Set-ItemProperty - Name " DisablePromptToUpdateHelp" - Path " HKLM:\SOFTWARE\$ ( $_ ) \Microsoft\PowerShell" - Value 1 - Force
15
+ }
16
+ catch
17
+ {
18
+ # Ignore for cases when tests are running in non-elevated more or registry key does not exist or not accessible
19
+ }
19
20
}
20
21
21
22
$directory = Split-Path - Parent $MyInvocation.MyCommand.Path
You can’t perform that action at this time.
0 commit comments