proxb / PoshWSUS

PowerShell module to manage Windows Server Update Services (WSUS)
MIT License
231 stars 64 forks source link

Get-PSWSUSUpdatePerClient throws ambiguity error #11

Closed lansalot closed 8 years ago

lansalot commented 8 years ago

Version 2.3.

So I'm passing Computername, but being told I'm not.

PS C:\scripts\powershell> Get-PSWSUSUpdatePerClient -ComputerName SOMEPCNAME
Get-PSWSUSUpdatePerClient : Parameter cannot be processed because the parameter name 'Computer' is ambiguous. Possible matches include:
-Computername -ComputerTargetGroups.
At line:1 char:1
+ Get-PSWSUSUpdatePerClient -ComputerName ntweb1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-PSWSUSUpdatePerClient], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameter,Get-PSWSUSUpdatePerClient

Also, ComputerTargetGroups isn't in Get-PSWSUSUpdatePerClient...?

proxb commented 8 years ago

This will be updated in the latest release to correct that error. ComputerTargetGroups is not listed as this is only to look at the updates per WSUS clients.

lansalot commented 8 years ago

Thanks - I see you've noted a few fixes, are you fixing-as-you-go, ie if I grab the latest right now will it be in it?

Superb cmdlets by the way - use them a lot.

proxb commented 8 years ago

Thanks! Currently I am hoping to push out an update this weekend with some of the changes. Assuming everything goes good then you should see a new update by Monday.

proxb commented 8 years ago

The latest update that I pushed out should fix this!

lansalot commented 8 years ago

Does indeed, thanks!