Skip to content

Export-ModuleMember : The Export-ModuleMember cmdlet can only be called from inside a module error #4

Description

@SignalGroup

Trying to run Get-ActiveCalls and recieving the following error:

Export-ModuleMember : The Export-ModuleMember cmdlet can only be called from inside a module.
At C:\Users\david.sack.SIGNALGROUP\OneDrive - The SignalGroup LLC\Documents\Git\3cx\3cx_xapi_module\ActiveCalls.ps1:47 char:1

  • Export-ModuleMember -Function Get-ActiveCalls
  •   + CategoryInfo          : PermissionDenied: (:) [Export-ModuleMember], InvalidOperationException
      + FullyQualifiedErrorId : Modules_CanOnlyExecuteExportModuleMemberInsideAModule,Microsoft.PowerShell.Commands.ExportModuleMemberCommand
    
    

Any assistance would be greatly appreciated.

Thanks
Dave

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions