Skip to content

Commit

Permalink
Put Application Parameter in quotation marks.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdovnic committed Feb 8, 2016
1 parent bb4f1e7 commit 7c1d553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advfirewall-installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if ($args.Length -gt 0) {
[string] $LogFile = (Join-Path -Path $PSScriptRoot -ChildPath "advfirewall-events.csv")
[string] $TaskDescription = "Zeichnet Windows Firewall Ereignisse auf, ben$([char]0x00F6)tigt $TaskScript und schreibt in die Datei $LogFile."
[string] $TaskCommand = (Join-Path -Path $PSHOME -ChildPath "powershell.exe")
[string] $TaskArguments = "-NoProfile -ExecutionPolicy Bypass -File `"$TaskScript`" -SystemTime `$(SystemTime) -ThreadID `$(ThreadID) -ProcessID `$(ProcessID) -Application `$(Application)` -Direction `$(Direction) -SourceAddress `$(SourceAddress) -SourcePort `$(SourcePort) -DestAddress `$(DestAddress) -DestPort `$(DestPort) -Protocol `$(Protocol)"
[string] $TaskArguments = "-NoProfile -ExecutionPolicy Bypass -File `"$TaskScript`" -SystemTime `$(SystemTime) -ThreadID `$(ThreadID) -ProcessID `$(ProcessID) -Application `"`$(Application)`" -Direction `$(Direction) -SourceAddress `$(SourceAddress) -SourcePort `$(SourcePort) -DestAddress `$(DestAddress) -DestPort `$(DestPort) -Protocol `$(Protocol)"
[string] $TaskFile = (Join-Path -Path $PSScriptRoot -ChildPath "$TaskName.xml")
[string] $TaskTemplate = @'
<?xml version="1.0" encoding="UTF-16"?>
Expand Down

0 comments on commit 7c1d553

Please sign in to comment.