@@ -13,6 +13,7 @@ PowerShell-Scripts/
1313│ └── domains2ipsipv4Only.ps1
1414│ └── DisableWindowsDefender.ps1
1515│ └── kickoff.ps1
16+ │ └── SetAdaptorMetricWired_Highest.ps1
1617├── Azure Active Directory/
1718│ └── get_az_token.ps1
1819│ └── aadinternals_audit6.ps1 (Uses AADInternals)
@@ -53,11 +54,17 @@ Usage:
5354
54551 . Clone the repository:
5556 git clone https://github.com/rolling-code/PowerShell-Scripts.git
56-
57- 2 . Navigate to the desired folder, eg:
57+ I recommend professional pen testers also:
58+ git clone https://github.com/PowerShellMafia/PowerSploit.git
59+ and run ./kickoff.ps1
60+ - This script will setup many necessary modules.
61+ - This script will update these modules if you choose to do so.
62+ - This script will setup PowerSploit for you if run under PowerShell 5.1 (git clone tht repo as shown above)
63+
64+ 3 . Navigate to the desired folder, eg:
5865 cd "PowerShell-Scripts/Azure Active Directory"
5966
60- 3 . Run the script using PowerShell, or Python eg:
67+ 4 . Run the script using PowerShell, or Python eg:
6168 .\get_az_token.ps1
6269
6370You may need modules to be loaded for some scripts to run properly. No worries I got you.
@@ -484,3 +491,13 @@ $Principal = New-ScheduledTaskPrincipal -UserId "SYSTEM" -RunLevel Highest
484491Register-ScheduledTask -TaskName "Git-PostLogonScript" -Action $Action -Trigger $Triggers -Principal $Principal -Description "Run post-logon script elevated"
485492```
486493
494+ ---
495+ ### ` SetAdaptorMetricWired_Highest.ps1 `
496+
497+ Set interface metrics for physical adapters only.
498+ - Disconnected physical adapters => metric 100
499+ - Connected physical adapters => metric 10 (except when both wired+wifi are Up: wired=10, wifi=50) Like the name says, prefer wired over wifi
500+ - Use -Trial to preview planned changes without applying them
501+
502+ Use like so to see what changes it will perform without applying them:
503+ ` .\SetAdaptorMetricWired_Highest.ps1 -Trial `
0 commit comments