Comment
03-18-2011
09:08 AM
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
03-18-2011
09:08 AM
running esxi 4.1.0 and am getting a forbidden error.
Exception calling "UploadFile" with "3" argument(s): "The remote server returne
d an error: (403) Forbidden."
At C:\scripts\esxi_replace_certs.ps1:206 char:25
+ $objWebClient.UploadFile <<<< (($strESXiURL + "/host/ssl_cert"),"PUT",$strHos
tCertFile)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
Exception calling "UploadFile" with "3" argument(s): "The remote server returne
d an error: (403) Forbidden."
At C:\scripts\esxi_replace_certs.ps1:208 char:25
+ $objWebClient.UploadFile <<<< (($strESXiURL + "/host/ssl_key"),"PUT", $strHos
tKeyFile)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException