February 2019
Intermediate to advanced
626 pages
15h 51m
English
All of the functions in a module are exported by default. The Export-ModuleMember command may be used to limit this to a named set of commands.
If the Export-ModuleMember command is used, certain functions can be hidden from view:
function Get-ComputerDescription { }function Set-ComputerDescription { }function GetRegistryValueInfo { }Export-ModuleMember -Function Get-ComputerDescription, Set-ComputerDescription
The result of this is a module that has a hidden, or private, GetRegistryValueInfo function.
Read now
Unlock full access