diff --git a/Setup-Host.ps1 b/Setup-Host.ps1 index f97a835..81de207 100755 --- a/Setup-Host.ps1 +++ b/Setup-Host.ps1 @@ -34,7 +34,7 @@ foreach ($net in $netcon) { Set-NetConnectionProfile ` -InterfaceIndex $net.InterfaceIndex ` -NetworkCategory Private - $netname = $netcon.Name + $netname = $net.Name Write-host -ForegroundColor Cyan ` -Object "Setting Network Profile to Private for network connection $NetName" }