Skip to content

Instantly share code, notes, and snippets.

#=================================================
# 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