Search found 4 matches

by 1011010101010111001
2021-Nov-11, 8:53 pm
Forum: Windows PowerShell
Topic: Solved: Send request to localhost/app/page (IIS) -- SSL/TLS error
Replies: 4
Views: 1084

Re: Send request to localhost/app/page (IIS)

Solution for SSL error with PS version 5 #deal with SSL/TLS issues first add-type @" using System.Net; using System.Security.Cryptography.X509Certificates; public class TrustAllCertsPolicy : ICertificatePolicy { public bool CheckValidationResult( ServicePoint srvPoint, X509Certificate certific...
by 1011010101010111001
2021-Nov-11, 7:58 pm
Forum: Windows PowerShell
Topic: Solved: Send request to localhost/app/page (IIS) -- SSL/TLS error
Replies: 4
Views: 1084

Re: Send request to localhost/app/page (IIS)

Yep, directory browsing is on. port 80 will auto redirect to 443 one these machines. So I can't use http instead of https. Additionally I switched over to 'Invoke-WebRequest' and get the same results when I run it locally. It's definitely an SSL hurdle thats in my way, I know how to program around t...
by 1011010101010111001
2021-Nov-10, 4:26 pm
Forum: Windows PowerShell
Topic: Solved: Send request to localhost/app/page (IIS) -- SSL/TLS error
Replies: 4
Views: 1084

Solved: Send request to localhost/app/page (IIS) -- SSL/TLS error

Hello, I'm needing to get the version number of the web app that's currently running on IIS instance. There is a text file that contains the version information located at: D:\Program Files\vendor\application name\ version number -application name\web\the *.txt file. That file can be accessed via: (...
by 1011010101010111001
2021-Oct-28, 4:16 pm
Forum: Windows PowerShell
Topic: Using Out-GridView -Wait but window closes anyway
Replies: 1
Views: 2085

Using Out-GridView -Wait but window closes anyway

My code does the following: Param( [Parameter(Mandatory=$true)] [string[]] $find ) Set-Location C:\script Write-Output "Searching..." $folders = @(a list of folders) $excluded = @(a list of folders) $results = foreach ($folder in $folders) { Get-ChildItem $folder -Recurse -Exclude $exclude...