Skip to content

Commit

Permalink
Fix Get-NetView Execution (microsoft#4151)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks authored Feb 23, 2024
1 parent 6b45201 commit 5a12ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/secnetperf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Invoke-Command -Session $Session -ScriptBlock {
}

# Collect some info about machine state.
if ($NoLogs -and $isWindows) {
if (!$NoLogs -and $isWindows) {
$Arguments = "-SkipNetsh"
if (Get-Help Get-NetView -Parameter SkipWindowsRegistry -ErrorAction Ignore) {
$Arguments += " -SkipWindowsRegistry"
Expand Down

0 comments on commit 5a12ea0

Please sign in to comment.