Fix PowerShell DNS Query Permission Denied Errors - Fix Command Prompt Can't Connect to SQL Server-How to Enable PowerShell Transcript Logging for Auditing

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.