This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#================================================= | |
# Initialize Wireless Network | |
#================================================= | |
if (Test-Path "$env:SystemRoot\System32\dmcmnutils.dll") { | |
Write-Host -ForegroundColor DarkGray "$((Get-Date).ToString('yyyy-MM-dd-HHmmss')) Wireless Network" | |
if ($WirelessConnect){ | |
Start-Process PowerShell -ArgumentList 'Start-WinREWiFi -WirelessConnect' -Wait | |
} | |
else { | |
Write-Host -ForegroundColor Cyan "$((Get-Date).ToString('yyyy-MM-dd-HHmmss')) Starting WlanSvc Service" -NoNewline |