PSModuleInfo.ModuleBase Property

Definition

Get the module base directory for this module. For modules loaded via a module manifest, this will be the directory containing the manifest file rather than the directory containing the actual module file. This is particularly useful when loading a GAC'ed assembly.

C++
public:
 property System::String ^ ModuleBase { System::String ^ get(); };

Property Value

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0