You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using PowerShell 5.1 with PowerShellGet v1.0.0.1 (the default version), I can Publish-Module just fine, but when I try to Find-Module ActiveDirectory -Repository liget, I get the following warning and error:
PackageManagement\Find-Package : No match was found for the specified search criteria and module name 'ActiveDirectory'. > Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1397 char:3
+ PackageManagement\Find-Package @PSBoundParameters | Microsoft ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power...ets.FindPackage:FindPackage) [Find-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage
PS >Find-Module ActiveDirectory -Repository liget -Verbose -Debug
DEBUG: 00:00:00.0000001 Calling New() : MethodName ='ResolvePackageSources'
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): a
DEBUG: 00:00:00.0000202 Verbose: False
DEBUG: 00:00:00.0000302 Name: liget
DEBUG: 00:00:00.0000398 ErrorVariable: ev
DEBUG: 00:00:00.0015480 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0
DEBUG: 00:00:00.0027917In PowerShellGet Provider -'Resolve-PackageSource'.
DEBUG: 00:00:00.0068710 Yielding packge source for liget at location http://192.168.0.201:9011/api/v2/
DEBUG: 00:00:00.0083622 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0136566 Calling New() : MethodName ='GetDynamicOptions'
DEBUG: 00:00:00.0136733 Verbose: False
DEBUG: 00:00:00.0136831 Name: liget
DEBUG: 00:00:00.0136927 ErrorVariable: ev
DEBUG: 00:00:00.0146575 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0159446In PowerShellGet Provider -'Get-DynamicOptions'.
DEBUG: 00:00:00.0174353 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0200086 Calling New() : MethodName ='GetDynamicOptions'
DEBUG: 00:00:00.0200251 Verbose: False
DEBUG: 00:00:00.0200356 Name: liget
DEBUG: 00:00:00.0200457 ErrorVariable: ev
DEBUG: 00:00:00.0209147 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0221773In PowerShellGet Provider -'Get-DynamicOptions'.
DEBUG: 00:00:00.0247741 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:03.2993429 Calling New() : MethodName ='ResolvePackageSources'
DEBUG: 00:00:03.3019371 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:03.3051240 ProviderName: PowerShellGet
DEBUG: 00:00:03.3083400 Verbose: False
DEBUG: 00:00:03.3103088 Name: liget
DEBUG: 00:00:03.3120965 ErrorVariable: ev
DEBUG: 00:00:03.3144733 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0
DEBUG: 00:00:03.3168256In PowerShellGet Provider -'Resolve-PackageSource'.
DEBUG: 00:00:03.3246672 Yielding packge source for liget at location http://192.168.0.201:9011/api/v2/
DEBUG: 00:00:03.3280221 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:03.3326552 Calling New() : MethodName ='ResolvePackageSources'
DEBUG: 00:00:03.3356465 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:03.3381834 ProviderName: PowerShellGet
DEBUG: 00:00:03.3406285 Verbose: False
DEBUG: 00:00:03.3424742 Name: liget
DEBUG: 00:00:03.3442281 ErrorVariable: ev
DEBUG: 00:00:03.3464083 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0
DEBUG: 00:00:03.3494720In PowerShellGet Provider -'Resolve-PackageSource'.
DEBUG: 00:00:03.3568977 Yielding packge source for liget at location http://192.168.0.201:9011/api/v2/
DEBUG: 00:00:03.3604204 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0000004 Calling New() : MethodName ='ResolvePackageSources'
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): a
DEBUG: 00:00:00.0000231 Verbose: True
DEBUG: 00:00:00.0000339 Debug: True
DEBUG: 00:00:00.0000430 Name: ActiveDirectory
DEBUG: 00:00:00.0000522 Source: liget
DEBUG: 00:00:00.0008922 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0
DEBUG: 00:00:00.0020143In PowerShellGet Provider -'Resolve-PackageSource'.
DEBUG: 00:00:00.0056614 Yielding packge source for liget at location http://192.168.0.201:9011/api/v2/
DEBUG: 00:00:00.0070107 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0093239 Calling New() : MethodName ='GetDynamicOptions'
DEBUG: 00:00:00.0093419 Verbose: True
DEBUG: 00:00:00.0093517 Debug: True
DEBUG: 00:00:00.0093609 Name: ActiveDirectory
DEBUG: 00:00:00.0093699 Source: liget
DEBUG: 00:00:00.0109577 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0120559In PowerShellGet Provider -'Get-DynamicOptions'.
DEBUG: 00:00:00.0136024 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0163369 Calling New() : MethodName ='GetDynamicOptions'
DEBUG: 00:00:00.0163518 Verbose: True
DEBUG: 00:00:00.0163612 Debug: True
DEBUG: 00:00:00.0163697 Name: ActiveDirectory
DEBUG: 00:00:00.0163789 Source: liget
DEBUG: 00:00:00.0172195 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0184573In PowerShellGet Provider -'Get-DynamicOptions'.
DEBUG: 00:00:00.0214422 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0238960 Calling New() : MethodName ='GetDynamicOptions'
DEBUG: 00:00:00.0239120 Verbose: True
DEBUG: 00:00:00.0239225 Debug: True
DEBUG: 00:00:00.0239324 Name: ActiveDirectory
DEBUG: 00:00:00.0239422 Source: liget
DEBUG: 00:00:00.0247646 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1
DEBUG: 00:00:00.0260078In PowerShellGet Provider -'Get-DynamicOptions'.
DEBUG: 00:00:00.0300068 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.9410267 Calling New() : MethodName ='ResolvePackageSources'
DEBUG: 00:00:00.9433656 ProviderName: PowerShellGet
DEBUG: 00:00:00.9460836 Type: Module
DEBUG: 00:00:00.9480998 Source: liget
DEBUG: 00:00:00.9501457 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.9520740 Debug: True
DEBUG: 00:00:00.9547639 Verbose: True
DEBUG: 00:00:00.9574658 Name: ActiveDirectory
DEBUG: 00:00:00.9600090 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0
DEBUG: 00:00:00.9629021In PowerShellGet Provider -'Resolve-PackageSource'.
VERBOSE: Repository details, Name ='liget', Location ='http://192.168.0.201:9011/api/v2/'; IsTrusted ='True'; IsRegistered ='True'.
DEBUG: 00:00:00.9723035 Yielding packge source for liget at location http://192.168.0.201:9011/api/v2/
DEBUG: 00:00:00.9751907 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.9752717 Calling SearchForPackages. Name='ActiveDirectory'
VERBOSE: Using the provider 'PowerShellGet'for searching packages.
DEBUG: 00:00:00.9758786 PackageProvider::FindPackage with name ActiveDirectory
DEBUG: 00:00:00.9761784 Calling SearchForPackages After Select 1
DEBUG: 00:00:00.9802066 Calling New() : MethodName ='FindPackage'
DEBUG: 00:00:00.9828097 ProviderName: PowerShellGet
DEBUG: 00:00:00.9854328 Type: Module
DEBUG: 00:00:00.9876344 Source: liget
DEBUG: 00:00:00.9902262 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.9927538 Debug: True
DEBUG: 00:00:00.9948537 Verbose: True
DEBUG: 00:00:00.9968962 Name: ActiveDirectory
DEBUG: 00:00:00.9994261 INVOKING PowerShell Fn Find-Package with args System.String[],,, that has length 4
DEBUG: 00:00:01.0023858In PowerShellGet Provider -'Find-Package'.
DEBUG: 00:00:01.0048849 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:01.0071477 OPTION: Type => Module
DEBUG: 00:00:01.0111486 OPTION: Source => liget
DEBUG: 00:00:01.0132434 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:01.0151312 OPTION: Debug => True
DEBUG: 00:00:01.0169988 OPTION: Verbose => True
DEBUG: 00:00:01.0188985 OPTION: Name => ActiveDirectory
VERBOSE: Using the specified source names : 'liget'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'http://192.168.0.201:9011/api/v2/' and PackageManagementProvider is 'NuGet'.
DEBUG: 00:00:01.0308836 PackageProvider::FindPackage with name ActiveDirectory
DEBUG: 00:00:01.0356650 Calling 'NuGet'::'FindPackage'- name='ActiveDirectory', requiredVersion='',minimumVersion='', maximumVersion='''.DEBUG: 00:00:01.0398098 Iterating 'ActiveDirectory'.DEBUG: 00:00:01.0463283 There are '1' registered sources in 'NuGet' provider.DEBUG: 00:00:01.0509729 Source 'http://192.168.0.201:9011/api/v2/' is not one of the registered sources in 'NuGet' provider.DEBUG: 00:00:02.0523506 Source 'http://192.168.0.201:9011/api/v2/' is validated.DEBUG: 00:00:02.0580777 Calling 'NuGetRequest'::'GetPackageById', 'ActiveDirectory'.DEBUG: 00:00:02.0680817 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'ActiveDirectory'.DEBUG: 00:00:02.0721138 Calling 'NuGetClient'::'FindPackage'.VERBOSE: Searching repository 'http://192.168.0.201:9011/api/v2/FindPackagesById()?id='ActiveDirectory'' for ''.DEBUG: 00:00:02.0875616 Downloading 'http://192.168.0.201:9011/api/v2/FindPackagesById()?id='ActiveDirectory'&$skip=0&$top=40'.DEBUG: 00:00:02.1000908 Completed downloading 'http://192.168.0.201:9011/api/v2/FindPackagesById()?id='ActiveDirectory'&$skip=0&$top=40'.DEBUG: 00:00:02.1042394 '1' packages received in the last request.VERBOSE: Total package yield:'0' for the specified package 'ActiveDirectory'.DEBUG: 00:00:02.1282587 Completed iterating for 'ActiveDirectory'.DEBUG: 00:00:02.1301839 PowerShell Script 'PSModule' Function 'Find-Package' returns null.DEBUG: 00:00:02.1328238 Done calling powershell «Find-Package» «PSModule»DEBUG: 00:00:02.1336871 unmatched package name='ActiveDirectory'ConfirmNo match was found for the specified search criteria and module name 'ActiveDirectory'. Try Get-PSRepository to see all available registered module repositories.[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): aPackageManagement\Find-Package : No match was found for the specified search criteria and module name 'ActiveDirectory'. Try Get-PSRepository to see all available registered module repositories.At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1397 char:3+ PackageManagement\Find-Package @PSBoundParameters | Microsoft ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Microsoft.Power...ets.FindPackage:FindPackage) [Find-Package], Exception + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage
It's really odd because you can see at the bottom of that output it says, DEBUG: 00:00:02.1042394 '1' packages received in the last request. When I confirm, the output, it does show ActiveDirectory, but the schema is a bit odd. Here's the output from http://192.168.0.201:9011/api/v2/FindPackagesById()?id=%27ActiveDirectory%27&$skip=0&$top=40:
<?xml version="1.0" encoding="utf-8"?><feed xmlns:base="http://192.168.0.201:9011/api/v2" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" xmlns="http://www.w3.org/2005/Atom"><m:count>1</m:count><entry><id>http://192.168.0.201:9011/api/v2/Packages(Id='ActiveDirectory',Version='2020.10.9')</id><title></title><author><name>Raymond Piller</name></author><content type="application/zip" src="http://192.168.0.201:9011/api/v2/contents/activedirectory/2020.10.9" /><m:properties><d:Id>ActiveDirectory</d:Id><d:Title></d:Title><d:Version>2020.10.9</d:Version><d:NormalizedVersion>2020.10.9</d:NormalizedVersion><d:Authors>Raymond Piller</d:Authors><d:Copyright /><d:Dependencies /><d:Description>Useful for using AD Module without installing via RSAT.</d:Description><d:DownloadCount>0</d:DownloadCount><d:LastEdited>0001-01-01T00:00:00</d:LastEdited><d:Published>2020-10-10T02:58:01.2787543</d:Published><d:PackageHash /><d:PackageHashAlgorithm /><d:PackageSize>0</d:PackageSize><d:ProjectUrl /><d:IconUrl /><d:LicenseUrl /><d:Tags>PSModule,PSIncludes_Cmdlet,PSCmdlet_Add-ADCentralAccessPolicyMember,PSCmdlet_Add-ADComputerServiceAccount,PSCmdlet_Add-ADDomainControllerPasswordReplicationPolicy,PSCmdlet_Add-ADFineGrainedPasswordPolicySubject,PSCmdlet_Add-ADGroupMember,PSCmdlet_Add-ADPrincipalGroupMembership,PSCmdlet_Add-ADResourcePropertyListMember,PSCmdlet_Clear-ADAccountExpiration,PSCmdlet_Clear-ADClaimTransformLink,PSCmdlet_Disable-ADAccount,PSCmdlet_Disable-ADOptionalFeature,PSCmdlet_Enable-ADAccount,PSCmdlet_Enable-ADOptionalFeature,PSCmdlet_Get-ADAccountAuthorizationGroup,PSCmdlet_Get-ADAccountResultantPasswordReplicationPolicy,PSCmdlet_Get-ADAuthenticationPolicy,PSCmdlet_Get-ADAuthenticationPolicySilo,PSCmdlet_Get-ADCentralAccessPolicy,PSCmdlet_Get-ADCentralAccessRule,PSCmdlet_Get-ADClaimTransformPolicy,PSCmdlet_Get-ADClaimType,PSCmdlet_Get-ADComputer,PSCmdlet_Get-ADComputerServiceAccount,PSCmdlet_Get-ADDCCloningExcludedApplicationList,PSCmdlet_Get-ADDefaultDomainPasswordPolicy,PSCmdlet_Get-ADDomain,PSCmdlet_Get-ADDomainController,PSCmdlet_Get-ADDomainControllerPasswordReplicationPolicy,PSCmdlet_Get-ADDomainControllerPasswordReplicationPolicyUsage,PSCmdlet_Get-ADFineGrainedPasswordPolicy,PSCmdlet_Get-ADFineGrainedPasswordPolicySubject,PSCmdlet_Get-ADForest,PSCmdlet_Get-ADGroup,PSCmdlet_Get-ADGroupMember,PSCmdlet_Get-ADObject,PSCmdlet_Get-ADOptionalFeature,PSCmdlet_Get-ADOrganizationalUnit,PSCmdlet_Get-ADPrincipalGroupMembership,PSCmdlet_Get-ADReplicationAttributeMetadata,PSCmdlet_Get-ADReplicationConnection,PSCmdlet_Get-ADReplicationFailure,PSCmdlet_Get-ADReplicationPartnerMetadata,PSCmdlet_Get-ADReplicationQueueOperation,PSCmdlet_Get-ADReplicationSite,PSCmdlet_Get-ADReplicationSiteLink,PSCmdlet_Get-ADReplicationSiteLinkBridge,PSCmdlet_Get-ADReplicationSubnet,PSCmdlet_Get-ADReplicationUpToDatenessVectorTable,PSCmdlet_Get-ADResourceProperty,PSCmdlet_Get-ADResourcePropertyList,PSCmdlet_Get-ADResourcePropertyValueType,PSCmdlet_Get-ADRootDSE,PSCmdlet_Get-ADServiceAccount,PSCmdlet_Get-ADTrust,PSCmdlet_Get-ADUser,PSCmdlet_Get-ADUserResultantPasswordPolicy,PSCmdlet_Grant-ADAuthenticationPolicySiloAccess,PSCmdlet_Install-ADServiceAccount,PSCmdlet_Move-ADDirectoryServer,PSCmdlet_Move-ADDirectoryServerOperationMasterRole,PSCmdlet_Move-ADObject,PSCmdlet_New-ADAuthenticationPolicy,PSCmdlet_New-ADAuthenticationPolicySilo,PSCmdlet_New-ADCentralAccessPolicy,PSCmdlet_New-ADCentralAccessRule,PSCmdlet_New-ADClaimTransformPolicy,PSCmdlet_New-ADClaimType,PSCmdlet_New-ADComputer,PSCmdlet_New-ADDCCloneConfigFile,PSCmdlet_New-ADFineGrainedPasswordPolicy,PSCmdlet_New-ADGroup,PSCmdlet_New-ADObject,PSCmdlet_New-ADOrganizationalUnit,PSCmdlet_New-ADReplicationSite,PSCmdlet_New-ADReplicationSiteLink,PSCmdlet_New-ADReplicationSiteLinkBridge,PSCmdlet_New-ADReplicationSubnet,PSCmdlet_New-ADResourceProperty,PSCmdlet_New-ADResourcePropertyList,PSCmdlet_New-ADServiceAccount,PSCmdlet_New-ADUser,PSCmdlet_Remove-ADAuthenticationPolicy,PSCmdlet_Remove-ADAuthenticationPolicySilo,PSCmdlet_Remove-ADCentralAccessPolicy,PSCmdlet_Remove-ADCentralAccessPolicyMember,PSCmdlet_Remove-ADCentralAccessRule,PSCmdlet_Remove-ADClaimTransformPolicy,PSCmdlet_Remove-ADClaimType,PSCmdlet_Remove-ADComputer,PSCmdlet_Remove-ADComputerServiceAccount,PSCmdlet_Remove-ADDomainControllerPasswordReplicationPolicy,PSCmdlet_Remove-ADFineGrainedPasswordPolicy,PSCmdlet_Remove-ADFineGrainedPasswordPolicySubject,PSCmdlet_Remove-ADGroup,PSCmdlet_Remove-ADGroupMember,PSCmdlet_Remove-ADObject,PSCmdlet_Remove-ADOrganizationalUnit,PSCmdlet_Remove-ADPrincipalGroupMembership,PSCmdlet_Remove-ADReplicationSite,PSCmdlet_Remove-ADReplicationSiteLink,PSCmdlet_Remove-ADReplicationSiteLinkBridge,PSCmdlet_Remove-ADReplicationSubnet,PSCmdlet_Remove-ADResourceProperty,PSCmdlet_Remove-ADResourcePropertyList,PSCmdlet_Remove-ADResourcePropertyListMember,PSCmdlet_Remove-ADServiceAccount,PSCmdlet_Remove-ADUser,PSCmdlet_Rename-ADObject,PSCmdlet_Revoke-ADAuthenticationPolicySiloAccess,PSCmdlet_Reset-ADServiceAccountPassword,PSCmdlet_Restore-ADObject,PSCmdlet_Search-ADAccount,PSCmdlet_Set-ADAccountAuthenticationPolicySilo,PSCmdlet_Set-ADAccountControl,PSCmdlet_Set-ADAccountExpiration,PSCmdlet_Set-ADAccountPassword,PSCmdlet_Set-ADAuthenticationPolicy,PSCmdlet_Set-ADAuthenticationPolicySilo,PSCmdlet_Set-ADCentralAccessPolicy,PSCmdlet_Set-ADCentralAccessRule,PSCmdlet_Set-ADClaimTransformLink,PSCmdlet_Set-ADClaimTransformPolicy,PSCmdlet_Set-ADClaimType,PSCmdlet_Set-ADComputer,PSCmdlet_Set-ADDefaultDomainPasswordPolicy,PSCmdlet_Set-ADDomain,PSCmdlet_Set-ADDomainMode,PSCmdlet_Set-ADFineGrainedPasswordPolicy,PSCmdlet_Set-ADForest,PSCmdlet_Set-ADForestMode,PSCmdlet_Set-ADGroup,PSCmdlet_Set-ADObject,PSCmdlet_Set-ADOrganizationalUnit,PSCmdlet_Set-ADReplicationConnection,PSCmdlet_Set-ADReplicationSite,PSCmdlet_Set-ADReplicationSiteLink,PSCmdlet_Set-ADReplicationSiteLinkBridge,PSCmdlet_Set-ADReplicationSubnet,PSCmdlet_Set-ADResourceProperty,PSCmdlet_Set-ADResourcePropertyList,PSCmdlet_Set-ADServiceAccount,PSCmdlet_Set-ADUser,PSCmdlet_Show-ADAuthenticationPolicyExpression,PSCmdlet_Sync-ADObject,PSCmdlet_Test-ADServiceAccount,PSCmdlet_Uninstall-ADServiceAccount,PSCmdlet_Unlock-ADAccount,PSCommand_Add-ADCentralAccessPolicyMember,PSCommand_Add-ADComputerServiceAccount,PSCommand_Add-ADDomainControllerPasswordReplicationPolicy,PSCommand_Add-ADFineGrainedPasswordPolicySubject,PSCommand_Add-ADGroupMember,PSCommand_Add-ADPrincipalGroupMembership,PSCommand_Add-ADResourcePropertyListMember,PSCommand_Clear-ADAccountExpiration,PSCommand_Clear-ADClaimTransformLink,PSCommand_Disable-ADAccount,PSCommand_Disable-ADOptionalFeature,PSCommand_Enable-ADAccount,PSCommand_Enable-ADOptionalFeature,PSCommand_Get-ADAccountAuthorizationGroup,PSCommand_Get-ADAccountResultantPasswordReplicationPolicy,PSCommand_Get-ADAuthenticationPolicy,PSCommand_Get-ADAuthenticationPolicySilo,PSCommand_Get-ADCentralAccessPolicy,PSCommand_Get-ADCentralAccessRule,PSCommand_Get-ADClaimTransformPolicy,PSCommand_Get-ADClaimType,PSCommand_Get-ADComputer,PSCommand_Get-ADComputerServiceAccount,PSCommand_Get-ADDCCloningExcludedApplicationList,PSCommand_Get-ADDefaultDomainPasswordPolicy,PSCommand_Get-ADDomain,PSCommand_Get-ADDomainController,PSCommand_Get-ADDomainControllerPasswordReplicationPolicy,PSCommand_Get-ADDomainControllerPasswordReplicationPolicyUsage,PSCommand_Get-ADFineGrainedPasswordPolicy,PSCommand_Get-ADFineGrainedPasswordPolicySubject,PSCommand_Get-ADForest,PSCommand_Get-ADGroup,PSCommand_Get-ADGroupMember,PSCommand_Get-ADObject,PSCommand_Get-ADOptionalFeature,PSCommand_Get-ADOrganizationalUnit,PSCommand_Get-ADPrincipalGroupMembership,PSCommand_Get-ADReplicationAttributeMetadata,PSCommand_Get-ADReplicationConnection,PSCommand_Get-ADReplicationFailure,PSCommand_Get-ADReplicationPartnerMetadata,PSCommand_Get-ADReplicationQueueOperation,PSCommand_Get-ADReplicationSite,PSCommand_Get-ADReplicationSiteLink,PSCommand_Get-ADReplicationSiteLinkBridge,PSCommand_Get-ADReplicationSubnet,PSCommand_Get-ADReplicationUpToDatenessVectorTable,PSCommand_Get-ADResourceProperty,PSCommand_Get-ADResourcePropertyList,PSCommand_Get-ADResourcePropertyValueType,PSCommand_Get-ADRootDSE,PSCommand_Get-ADServiceAccount,PSCommand_Get-ADTrust,PSCommand_Get-ADUser,PSCommand_Get-ADUserResultantPasswordPolicy,PSCommand_Grant-ADAuthenticationPolicySiloAccess,PSCommand_Install-ADServiceAccount,PSCommand_Move-ADDirectoryServer,PSCommand_Move-ADDirectoryServerOperationMasterRole,PSCommand_Move-ADObject,PSCommand_New-ADAuthenticationPolicy,PSCommand_New-ADAuthenticationPolicySilo,PSCommand_New-ADCentralAccessPolicy,PSCommand_New-ADCentralAccessRule,PSCommand_New-ADClaimTransformPolicy,PSCommand_New-ADClaimType,PSCommand_New-ADComputer,PSCommand_New-ADDCCloneConfigFile,PSCommand_New-ADFineGrainedPasswordPolicy,PSCommand_New-ADGroup,PSCommand_New-ADObject,PSCommand_New-ADOrganizationalUnit,PSCommand_New-ADReplicationSite,PSCommand_New-ADReplicationSiteLink,PSCommand_New-ADReplicationSiteLinkBridge,PSCommand_New-ADReplicationSubnet,PSCommand_New-ADResourceProperty,PSCommand_New-ADResourcePropertyList,PSCommand_New-ADServiceAccount,PSCommand_New-ADUser,PSCommand_Remove-ADAuthenticationPolicy,PSCommand_Remove-ADAuthenticationPolicySilo,PSCommand_Remove-ADCentralAccessPolicy,PSCommand_Remove-ADCentralAccessPolicyMember,PSCommand_Remove-ADCentralAccessRule,PSCommand_Remove-ADClaimTransformPolicy,PSCommand_Remove-ADClaimType,PSCommand_Remove-ADComputer,PSCommand_Remove-ADComputerServiceAccount,PSCommand_Remove-ADDomainControllerPasswordReplicationPolicy,PSCommand_Remove-ADFineGrainedPasswordPolicy,PSCommand_Remove-ADFineGrainedPasswordPolicySubject,PSCommand_Remove-ADGroup,PSCommand_Remove-ADGroupMember,PSCommand_Remove-ADObject,PSCommand_Remove-ADOrganizationalUnit,PSCommand_Remove-ADPrincipalGroupMembership,PSCommand_Remove-ADReplicationSite,PSCommand_Remove-ADReplicationSiteLink,PSCommand_Remove-ADReplicationSiteLinkBridge,PSCommand_Remove-ADReplicationSubnet,PSCommand_Remove-ADResourceProperty,PSCommand_Remove-ADResourcePropertyList,PSCommand_Remove-ADResourcePropertyListMember,PSCommand_Remove-ADServiceAccount,PSCommand_Remove-ADUser,PSCommand_Rename-ADObject,PSCommand_Revoke-ADAuthenticationPolicySiloAccess,PSCommand_Reset-ADServiceAccountPassword,PSCommand_Restore-ADObject,PSCommand_Search-ADAccount,PSCommand_Set-ADAccountAuthenticationPolicySilo,PSCommand_Set-ADAccountControl,PSCommand_Set-ADAccountExpiration,PSCommand_Set-ADAccountPassword,PSCommand_Set-ADAuthenticationPolicy,PSCommand_Set-ADAuthenticationPolicySilo,PSCommand_Set-ADCentralAccessPolicy,PSCommand_Set-ADCentralAccessRule,PSCommand_Set-ADClaimTransformLink,PSCommand_Set-ADClaimTransformPolicy,PSCommand_Set-ADClaimType,PSCommand_Set-ADComputer,PSCommand_Set-ADDefaultDomainPasswordPolicy,PSCommand_Set-ADDomain,PSCommand_Set-ADDomainMode,PSCommand_Set-ADFineGrainedPasswordPolicy,PSCommand_Set-ADForest,PSCommand_Set-ADForestMode,PSCommand_Set-ADGroup,PSCommand_Set-ADObject,PSCommand_Set-ADOrganizationalUnit,PSCommand_Set-ADReplicationConnection,PSCommand_Set-ADReplicationSite,PSCommand_Set-ADReplicationSiteLink,PSCommand_Set-ADReplicationSiteLinkBridge,PSCommand_Set-ADReplicationSubnet,PSCommand_Set-ADResourceProperty,PSCommand_Set-ADResourcePropertyList,PSCommand_Set-ADServiceAccount,PSCommand_Set-ADUser,PSCommand_Show-ADAuthenticationPolicyExpression,PSCommand_Sync-ADObject,PSCommand_Test-ADServiceAccount,PSCommand_Uninstall-ADServiceAccount,PSCommand_Unlock-ADAccount</d:Tags><d:RequireLicenseAcceptance>false</d:RequireLicenseAcceptance></m:properties></entry></feed>
I'm not really sure what the schema expects. I kinda assum you would know since you're developing it. I just wanted to share my experience and provide as much debugging information as I can. I did try sunside's simple-nuget-server, and it does search properly despite other issues we have with that server. Here's XML returned from the same query:
I came here with the same issue, although I'm trying to use the v2 api since thats what PS5.1 supports out of the box:
On the liget host (apikey = 123456): docker run -d -v nuget_data:/data -p 9011:9011 -e "LIGET_API_KEY_HASH=8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92" --name liget tomzo/liget
On the Publisher (powershell 7): nuget sources add -Name 'liget2' -Source "https://test.tacnet.dev/api/v2/package"
On Windows 2022 Server subscriber:
PS C:\Users\Administrator> Register-PSRepository -InstallationPolicy Trusted -Name liget -SourceLocation https://test.tacnet.dev/api/v2
PS C:\Users\Administrator> Find-Module Certus.Utilities -Repository liget
PackageManagement\Find-Package : No match was found for the specified search criteria and module name 'Certus.Utilities'. Try
Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1397 char:3
+ PackageManagement\Find-Package @PSBoundParameters | Microsoft ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power...ets.FindPackage:FindPackage) [Find-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage
PS C:\Users\Administrator> Install-Module Certus.Utilities -Repository liget
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'Certus.Utilities'.
Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Using PowerShell 5.1 with PowerShellGet v1.0.0.1 (the default version), I can
Publish-Module
just fine, but when I try toFind-Module ActiveDirectory -Repository liget
, I get the following warning and error:Cannot set the source based on your response to #14. Will get the following warning when you
Register-PSRepository
:It's really odd because you can see at the bottom of that output it says,
DEBUG: 00:00:02.1042394 '1' packages received in the last request.
When I confirm, the output, it does show ActiveDirectory, but the schema is a bit odd. Here's the output fromhttp://192.168.0.201:9011/api/v2/FindPackagesById()?id=%27ActiveDirectory%27&$skip=0&$top=40
:Here's a linted version:
I'm not really sure what the schema expects. I kinda assum you would know since you're developing it. I just wanted to share my experience and provide as much debugging information as I can. I did try sunside's simple-nuget-server, and it does search properly despite other issues we have with that server. Here's XML returned from the same query:
Here's a linted version, and you'll probably notice the additional type metas provided:
Related issue: #39
The text was updated successfully, but these errors were encountered: