Force PowerShell to Use TLS 1.2
By default, older versions of PowerShell use TLS 1.0 for commands like Invoke-WebRequest. Since Automox requires TLS 1.2 for secure communication, attempting to download files or execute commands without configuring this may fail.
Solution
Follow these steps to configure PowerShell to use TLS 1.2:
- Open PowerShell as an Administrator.
- Search for "PowerShell" in the Start Menu, right-click, and select "Run as Administrator".
- Run the following command:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- Automox PowerShell scripts should now run without TLS errors.
Verification
To ensure TLS 1.2 is in use:
- Run a command requiring Invoke-WebRequest and verify no TLS-related errors occur.
- Optionally, check your system logs or network traces for confirmation.
Additional Notes
- If you encounter issues, ensure that your PowerShell version supports TLS 1.2. Consider upgrading PowerShell if necessary.
- For persistent settings, include this command in your PowerShell profile script ($PROFILE).