Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-Help functions error out #13

Open
rhavenn opened this issue May 3, 2016 · 2 comments
Open

Get-Help functions error out #13

rhavenn opened this issue May 3, 2016 · 2 comments

Comments

@rhavenn
Copy link

rhavenn commented May 3, 2016

Installed the latest version of the module, 2.3.1.2, from PowerShell Gallery.

Imported the module and trying to use the Get-Help commands throws and error.

Get-Help PoshWSUS shows:

Name                              Category  Module                    Synopsis
----                              --------  ------                    --------
Get-PoshWSUSSyncUpdateCategories  Function  PoshWSUS                  Displays update product categories that you will sync from Windows Server Update Services (WSUS).
Get-PoshWSUSSyncUpdateClassifi... Function  PoshWSUS                  The Get-PoshWSUSSyncUpdateClassifications cmdlet gets the list of Windows Server Update Services (WSUS) classificati...
Set-PoshWsusClassification        Function  PoshWSUS                  Sets whether the classifications of updates that Windows Server Update Services (WSUS)...
Get-Help : Unable to find type [Microsoft.UpdateServices.Internal.BaseApi.UpdateCategory].
At line:1 char:1
+ Get-Help PoshWSUS
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Updat....UpdateCategory:TypeName) [Get-Help], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.GetHelpCommand

while

Get-Help Get-PSWSUSClient shows:

get-help : Unable to find type [Microsoft.UpdateServices.Internal.BaseApi.ComputerTargetGroup].
At line:1 char:1
+ get-help Get-PSWSUSClient
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Updat...uterTargetGroup:TypeName) [Get-Help], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.GetHelpCommand

Get-Help works for other 3rd party modules I have installed.

@INGY23
Copy link

INGY23 commented May 19, 2016

Hi Rhavenn,

If you make a connection to your wsus first it will load the required assembly then you will be able to use get-help and also tab complete the commands.

The command to connect is Connect-PSWSUSServer

Thanks
Ryan

@mezinster
Copy link

The command to connect is Connect-PSWSUSServer

@INGY23 Is it a right behavior of a Powershell Module to break get-command and get-help upon loading (but not yet connecting to WSUS SRV)?
Seems to me - it's kind of a "politically incorrect"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants