Projet

Général

Profil

New-ScriptConfigurationEntry

function New-ScriptConfigurationEntry([string] $FunctionName)

Crée une entrée de configuration de runspace, renvoie un objet de type System.Management.Automation.Runspaces.ScriptConfigurationEntry.
$ConfigurationRS = New-RunspaceConfiguration
Select-FunctionNameFromScript TestFrmRunSpace1.ps1 |
 New-ScriptConfigurationEntry|
 Add-ScriptConfigurationEntry -Configuration $ConfigurationRS

ou
$ConfigurationRS = New-RunspaceConfiguration
"New-Enum","Show-MessageBox","ParseStack"|
 New-ScriptConfigurationEntry|
 Add-ScriptConfigurationEntry -Configuration $ConfigurationRS