Updated: November 1, 2013
Applies To: System Center 2012 R2 Orchestrator, Windows Azure Pack for Windows Server
Creates a Service Management Automation portable module from a Windows Powershell module.
The New-SmaPortableModule function converts a Windows PowerShell module that is not easily imported into Service Management Automation into a representation of the module that can be imported into Service Management Automation. This type of module may be one with dependencies on external files or registry settings on the computer where the Windows PowerShell module is installed.
A portable module contains all of the cmdlets from the original module, but does not retain the functionality of the cmdlets from the original module. Therefore, portable modules are useful within Service Management Automation as a means for activity discovery.
If you want to use the original functionality of a cmdlet in a portable module, the cmdlet must be run in an InlineScript against a host that has the original Windows PowerShell module installed. However, if all runbook worker hosts have the original Windows PowerShell module installed, you do not need to run the cmdlet from an InlineScript.
Specifies the Windows PowerShell session that contains the Windows PowerShell module to convert into a portable module. To create a PSSession object, use the New-PSSession cmdlet. To get a PSSession object, use the Get-PSSession cmdlet.
Specifies the name of the Windows PowerShell module to convert into a portable module.
Specifies the location to store the portable module on the local computer. The default location is the current directory.
Indicates that the Windows PowerShell module is a snap-in rather than a module.