Bird
0
0

You created a module with functions but after importing, the functions are not available. What might be wrong?

medium📝 Debug Q7 of 15
PowerShell - Modules and Script Organization
You created a module with functions but after importing, the functions are not available. What might be wrong?
AFunctions are not exported in the module manifest
BThe module file is named with .ps1 extension
CThe module was imported with Import-Module -Force
DThe functions are private by default
Step-by-Step Solution
Solution:
  1. Step 1: Understand function visibility in modules

    Functions must be exported in the module manifest or script to be accessible.
  2. Step 2: Identify cause of missing functions

    If functions are not exported, they won't be available after import.
  3. Final Answer:

    Functions are not exported in the module manifest -> Option A
  4. Quick Check:

    Export functions to make them available [OK]
Quick Trick: Export functions to make them accessible outside module [OK]
Common Mistakes:
  • Assuming all functions auto-export
  • Confusing file extension with export
  • Thinking -Force affects function visibility

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes