If you are using the -passthroughAuth switch or a domain account in a script, the STSService.dll may fail to negotiate the handshake. : Use explicit local vCenter credentials.
Sometimes the error is simpler than it appears. rvtools unknown error stsservicedll free
This is almost a problem with RVTools itself. It’s an environment issue involving .NET, Visual C++ runtimes, or a mismatch between RVTools and your vCenter version. If you are using the -passthroughAuth switch or
Sometimes the error is triggered by a login failure that isn't clearly reported. RVTools STSService.dll error Visual C++ runtimes
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
The error regarding STSService.dll in RVTools typically occurs during command-line (CLI) execution
<configuration> <runtime> <AppContextSwitchOverrides value="Switch.System.Net.DontEnableSchSendTls13=true;Switch.System.Net.DontEnableTls12=false" /> </runtime> </configuration>