After we have written script, binary, and manifest modules, there are several places where we can store them. They can be stored in the system folder where PowerShell is installed, or in a user's folder. In either case, the module is placed into a module directory, and the entire module is placed in the subdirectories that are named by module name, with the following exceptions:
Dynamic modules created using the
New-Modules
cmdlet can be named using the-Name
parameter of the cmdletModules imported from the assembly object using the
Import-Module –Assembly
command are named using the following syntax:"dynamic_code_module_" + assembly.GetName().
When storing files in the system folder, you have to create the following path:
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
It needs to be emphasized that to modify the directory, administrator privileges are required. When we store files in the user's folder, we have to create the following path:
C:\Users\Administrator...