Skip to content

Commit

Permalink
filemonitor update
Browse files Browse the repository at this point in the history
  • Loading branch information
adbertram committed Oct 17, 2017
1 parent fddb5c6 commit 4b7c55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion File-Folder Management/FileMonitor.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function New-FileMonitor {
Set objShell = CreateObject(`"Wscript.shell`")`r`n
objShell.run(`"powershell.exe -NoProfile -WindowStyle Hidden -executionpolicy bypass -file `"`"$ScriptFilePath`"`"`")
"
Add-Content -Path $VbsScriptFilePath -Value $VbsScript
Set-Content -Path $VbsScriptFilePath -Value $VbsScript

## Create the WMI event consumer which will actually consume the event
$WmiConsumerParams = @{
Expand Down

0 comments on commit 4b7c55b

Please sign in to comment.