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

Commands not recognized #7

Closed
CharEmMech opened this issue May 31, 2024 · 1 comment
Closed

Commands not recognized #7

CharEmMech opened this issue May 31, 2024 · 1 comment

Comments

@CharEmMech
Copy link

I installed the module, imported the module and your commands are available through auto discover in the session however parameter tab completion fails and cmdlets are not recognized.

PS S:> Import-Module kppwpush
PS S:> New-Pwpush -payload "yo"
New-Pwpush : The term 'New-Pwpush' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • New-Pwpush -payload "yo"
  •   + CategoryInfo          : ObjectNotFound: (New-Pwpush:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS S:> Get-Command new-pwpush
Get-Command : The term 'new-pwpush' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • Get-Command new-pwpush
  •   + CategoryInfo          : ObjectNotFound: (new-pwpush:String) [Get-Command], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
    
    

PS S:> Get-Module kppwpush

ModuleType Version Name ExportedCommands


Script 1.3.1 kppwpush {Connect-KpPwpush, Get-KpPwpush, Get-KpPwpushActive, Get-K...

PS S:> Get-Module kppwpush | select -ExpandProperty exportedcommands

Key Value


Connect-KpPwpush Connect-KpPwpush
Get-KpPwpush Get-KpPwpush
Get-KpPwpushActive Get-KpPwpushActive
Get-KpPwpushExpired Get-KpPwpushExpired
Get-KpPwpushPreview Get-KpPwpushPreview
Get-KpPwpushUrl Get-KpPwpushUrl
Get-KpPwpushUrlActive Get-KpPwpushUrlActive
Get-KpPwpushUrlExpired Get-KpPwpushUrlExpired
Get-KpPwpushUrlPreview Get-KpPwpushUrlPreview
Invoke-KpPwpushRequest Invoke-KpPwpushRequest
New-KpPwpush New-KpPwpush
New-KpPwpushUrl New-KpPwpushUrl
Remove-KpPwpush Remove-KpPwpush
Remove-KpPwpushUrl Remove-KpPwpushUrl

@thekamilpro
Copy link
Owner

Hi @CharEmMech all commands have a prefix of Kp hence in your example you'd like to run New-KpPwpush

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

2 participants