Fix #14: MS Edge triggers VPN connection.
Fix #14: MS Edge triggers VPN connection.

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch sebi
# Your branch is ahead of 'origin/sebi' by 2 commits.
#   (use "git push" to publish your local commits)
#
# Changes to be committed:
#	modified:   provision/powershell/vpn-triggers.ps1
#
#
# It took 2.56 seconds to enumerate untracked files. 'status -uno'
# may speed it up, but you have to be careful not to forget to add
# new files yourself (see 'git help status').
# ------------------------ >8 ------------------------
# Do not touch the line above.
# Everything below will be removed.
diff --git a/provision/powershell/vpn-triggers.ps1 b/provision/powershell/vpn-triggers.ps1
index a2b8482..28cb981 100644
--- a/provision/powershell/vpn-triggers.ps1
+++ b/provision/powershell/vpn-triggers.ps1
@@ -10,28 +10,36 @@
 #   - Remote Desktop Client.
 # All this thing happens just for more ergonomics.

-$current = Get-VpnConnectionTrigger "Soneta VPN"                            `
+$current = Get-VpnConnectionTrigger "Soneta VPN"                                     `
               | Select-Object       -ExpandProperty ApplicationID

-Get-ChildItem -Path ${env:ProgramFiles(x86)}, $env:ProgramW6432             `
-                  , $env:USERPROFILE                                        `
-              -File                                                         `
-              -Recurse                                                      `
-              -Include devenv.exe, eTask.exe, mintty.exe, mstsc.exe         `
-   | Where-Object { !$current -Or -Not $current.Contains($_.FullName) }     `
-   | ForEach-Object                                                         `
-   {                                                                        `
-       Add-VpnConnectionTriggerApplication -ApplicationID "$($_.FullName)"  `
-                                           -ConnectionName "Soneta VPN"     `
+Get-ChildItem -Path ${env:ProgramFiles(x86)}, $env:ProgramW6432                      `
+                  , $env:USERPROFILE                                                 `
+              -File                                                                  `
+              -Recurse                                                               `
+              -Include devenv.exe, eTask.exe, mintty.exe, mstsc.exe                  `
+   | Where-Object { !$current -Or -Not $current.Contains($_.FullName) }              `
+   | ForEach-Object                                                                  `
+   {                                                                                 `
+       Add-VpnConnectionTriggerApplication -ApplicationID "$($_.FullName)"           `
+                                           -ConnectionName "Soneta VPN"              `
    }

-Get-ChildItem -Path $env:windir\System32                                    `
-              -File                                                         `
-              -Include mstsc.exe         `
-   | Where-Object { !$current -Or -Not $current.Contains($_.FullName) }     `
-   | ForEach-Object                                                         `
-   {                                                                        `
-       Add-VpnConnectionTriggerApplication -ApplicationID "$($_.FullName)"  `
-                                           -ConnectionName "Soneta VPN"     `
+Get-ChildItem -Path $env:windir\System32                                             `
+              -File                                                                  `
+              -Include mstsc.exe                                                     `
+   | Where-Object { !$current -Or -Not $current.Contains($_.FullName) }              `
+   | ForEach-Object                                                                  `
+   {                                                                                 `
+       Add-VpnConnectionTriggerApplication -ApplicationID "$($_.FullName)"           `
+                                           -ConnectionName "Soneta VPN"              `
    }

+Get-AppxPackage                                                                      `
+   | Where-Object   { $_.Name.EndsWith(".MicrosoftEdge") }                           `
+   | Where-Object   { !$current -Or -Not $current.Contains($_.PackageFamilyName) }   `
+   | ForEach-Object                                                                  `
+   {                                                                                 `
+       Add-VpnConnectionTriggerApplication -ApplicationID  "$($_.PackageFamilyName)" `
+                                           -ConnectionName "Soneta VPN"              `
+   }

a4099181/vagrant-officeVM