Skip to content

Instantly share code, notes, and snippets.

@asears
Last active March 15, 2026 11:20
Show Gist options
  • Select an option

  • Save asears/7fd74fdb32340e2b7e4401f18b21d2dd to your computer and use it in GitHub Desktop.

Select an option

Save asears/7fd74fdb32340e2b7e4401f18b21d2dd to your computer and use it in GitHub Desktop.
where in the powershell
(Get-Command foundry).path
$mypath = $MyInvocation.MyCommand.Path
Write-Output "Script Path: $mypath"
$foundryPath = (Get-Command foundry).path
netsh advfirewall firewall add rule name="Allow AIFoundry" dir=in action=allow program="$foundryPath" enable=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment