When you use a Invoke-Command or New-PSSession Cmdlet you might run into an error stating that the Certificate recovation list could not be checked. When you set the corresponding property
[System.Net.ServicePointManager]::CheckCertificateRevocationList = $false;
– you still get the same error message.
This is because the aforementioned Cmdlets do not honour this setting (whereas they honour
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true; };
to bypass all certificate validation). Instead they implement their own mechanism that you can set via PSSessionOption:
$sOpt = New-PSSessionOption -SkipRevocationCheck -SkipCACheck;
You then pass on this variable to the respective Cmdlet via the -SessionOption parameter.