Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/PowerShell.Core.Instrumentation/RegisterManifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ foreach ($file in $files)
}
}

[string] $command = "wevtutil um {0}" -f $manifest.FullName
[string] $command = 'wevtutil um "{0}"' -f $manifest.FullName

# Unregister if present. Avoids warnings when registering the manifest
# and it is already registered.
Expand All @@ -88,7 +88,7 @@ Start-NativeExecution {Invoke-Expression $command} $true

if (-not $Unregister)
{
$command = "wevtutil.exe im {0} /rf:{1} /mf:{1}" -f $manifest.FullName, $binary.FullName
$command = 'wevtutil.exe im "{0}" /rf:"{1}" /mf:"{1}"' -f $manifest.FullName, $binary.FullName
Write-Verbose -Message "Register the manifest: $command"
Start-NativeExecution { Invoke-Expression $command }
}