1
Vote

Unable to connect to WSUS server

description

Hello,

I am running the Powershell on my WSUS server and have imported the PoshWSUS to my Powershell session. But when I try the Connect-poshwsusserver command it fails, are there any other pre-requisites?

WARNING: Unable to connect to "servername"!

Thanks
Paul

comments

palcro wrote Sep 14, 2015 at 8:13 PM

when in debug mode I get the following

Connect-PoshWSUSServer : Cannot process argument transformation on parameter 'SecureConnection'. Cannot convert value "
System.String" to type "System.Management.Automation.SwitchParameter", parameters of this type only accept booleans or
numbers, use $true, $false, 1 or 0 instead.
At line:1 char:23
  • Connect-PoshWSUSServer <<<< -WSUSserver "REG1MSNS0023" -port 80 Debug
    • CategoryInfo : InvalidData: (:) [Connect-PoshWSUSServer], ParameterBindin...mationException
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Connect-PoshWSUSServer

palcro wrote Sep 14, 2015 at 8:29 PM

Found the answer in the discussion page - had to enter the following command

[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")