Slackbot
04/06/2023, 2:35 AMDennis Parker
04/06/2023, 2:20 PMDo
{
$Pass += 1
If((Get-NetConnectionProfile).IPv4Connectivity -contains "Internet")
{
$return = 1
}
if ($return -eq 0)
{
Restart-Service "NlaSvc" -Force -WarningAction SilentlyContinue
Start-Service "netprofm"
Start-Sleep -Seconds 5
}
} Until ($return -eq 1 -or $Pass -gt 1)
Andrew Gresbach
04/06/2023, 6:12 PMAndrew Gresbach
04/06/2023, 6:57 PMDennis Parker
04/06/2023, 8:22 PMAndrew Gresbach
04/06/2023, 8:25 PMDennis Parker
04/06/2023, 8:50 PMAndrew Gresbach
04/06/2023, 8:53 PMDennis Parker
04/06/2023, 9:03 PMAndrew Gresbach
04/06/2023, 9:04 PMDennis Parker
04/06/2023, 9:08 PMAndrew Gresbach
04/06/2023, 9:09 PMDennis Parker
04/06/2023, 9:10 PMAndrew Gresbach
04/06/2023, 9:11 PMDennis Parker
04/06/2023, 9:12 PMAndrew Gresbach
04/06/2023, 9:12 PMAndrew Gresbach
04/06/2023, 9:13 PMDennis Parker
04/06/2023, 9:13 PMAndrew Gresbach
04/07/2023, 1:17 AMDennis Parker
04/09/2023, 3:33 PMRestart-NetAdapter -Name *
There may be other ways I have not found.Dennis Parker
04/09/2023, 5:01 PMC:\pstools\psexec -s -accepteula c:\pstools\pskill $((Get-WmiObject Win32_Service | Where-Object { $_.Name -eq "Netprofm" }).ProcessId) -accepteula
Andrew Gresbach
04/09/2023, 5:02 PMDennis Parker
04/09/2023, 5:11 PMC:\pstools\psexec -s -accepteula c:\pstools\psservice restart netprofm -accepteula
Andrew Gresbach
04/09/2023, 5:12 PMDennis Parker
04/09/2023, 5:14 PMDennis Parker
04/09/2023, 5:21 PMAndrew Gresbach
04/09/2023, 7:54 PMDennis Parker
04/09/2023, 8:33 PMAndrew Gresbach
04/09/2023, 9:54 PMAndrew Gresbach
04/10/2023, 1:20 PMAndrew Gresbach
04/10/2023, 1:20 PMAndrew Gresbach
04/21/2023, 6:41 PM