try using this one
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri https://apod.nasa.gov/apod/
More Related Contents:
- How to download the SSL certificate from a website using PowerShell?
- PowerShell says “execution of scripts is disabled on this system.”
- Create objects with custom properties containing derived filesystem path information and export them to a CSV – calculated properties
- What’s the best way to determine the location of the current PowerShell script?
- Using a Variable (PowerShell) inside of a command
- Changing PowerShell’s default output encoding to UTF-8
- PowerShell outputting array items when interpolating within double quotes
- Use Invoke-WebRequest with a username and password for basic authentication on the GitHub API
- redirecting test-path output to text file
- How can I force Powershell to return an array when a call only returns one object?
- Save hash table in PowerShell object notation (PSON)
- Powershell “private” scope seems not useful at all
- When should I use Write-Error vs. Throw? Terminating vs. non-terminating errors
- Saving credentials for reuse by powershell and error ConvertTo-SecureString : Key not valid for use in specified state
- Controlling column widths with Format-Table
- Iterate over PSObject properties in PowerShell
- How to use the curl command in PowerShell?
- Ignoring an errorlevel != 0 in Windows PowerShell (ISE)
- DateTime subtraction not working in PowerShell – assignment vs. equality operator
- Loading Assemblies from NuGet Packages
- Issue with Powershell update string in each file within a folder
- How can I run a PowerShell script with white spaces in the path from the command line?
- How can I start Powershell script as noprofile in Visual Studio Code
- Output file doesn’t match Write-Host
- Running CMD command in PowerShell
- How to execute a PowerShell function several times in parallel?
- Is there an alternative to GUID when using msiexec to uninstall an application?
- What security setting is preventing Remote PowerShell 2.0 from accessing UNC paths
- PowerShell Capture Write-Host output
- Getting “Can’t find the drive. The drive called ‘IIS’ does not exist.”