Skip to content

Instantly share code, notes, and snippets.

@mitsimi
Created September 11, 2024 11:06
Show Gist options
  • Select an option

  • Save mitsimi/efadf868af633a94a623ff3b35289120 to your computer and use it in GitHub Desktop.

Select an option

Save mitsimi/efadf868af633a94a623ff3b35289120 to your computer and use it in GitHub Desktop.
Destiny 2 No Matchmaking
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
New-NetFirewallRule -DisplayName "Destiny2-Solo-Out-TCP" -Direction Outbound -RemotePort 27000-27200,3097 -Protocol TCP -Action Block
New-NetFirewallRule -DisplayName "Destiny2-Solo-Out-UDP" -Direction Outbound -RemotePort 27000-27200,3097 -Protocol UDP -Action Block
New-NetFirewallRule -DisplayName "Destiny2-Solo-In-TCP" -Direction Inbound -RemotePort 27000-27200,3097 -Protocol TCP -Action Block
New-NetFirewallRule -DisplayName "Destiny2-Solo-In-UDP" -Direction Inbound -RemotePort 27000-27200,3097 -Protocol UDP -Action Block
Write-Host "Destiny 2 Solo mode activated. Press Enter to deactivate solo mode."
Read-Host
Remove-NetFirewallRule -DisplayName "Destiny2-Solo-Out-TCP"
Remove-NetFirewallRule -DisplayName "Destiny2-Solo-Out-UDP"
Remove-NetFirewallRule -DisplayName "Destiny2-Solo-In-TCP"
Remove-NetFirewallRule -DisplayName "Destiny2-Solo-In-UDP"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment