EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

InitialSessionState Methods

(see also Protected Methods)
 NameDescription
public methodCloneCreates an exact copy of the current InitialSessionState object. This method is introduced in Windows PowerShell 2.0.
public methodstaticCreateOverloaded. Creates an InitialSessionState object. The variants of this method can create an InitialSessionState object that is empty, that specifies a snap-in or snap-in collection, and that specifies a snap-in collection and warning exception. This method is introduced in Windows PowerShell 2.0.
public methodstaticCreateDefaultCreates an InitialSessionState object that contains the default commands provided by Windows PowerShell. This method is introduced in Windows PowerShell 2.0.
public methodstaticCreateDefault2Creates a default Windows PowerShell session with the default cmdlets, providers, etc., that are loaded by the modules listed in the Modules property. This method was introduced in Windows PowerShell version 3.0.
public methodstaticCreateFromOverloaded. Creates an InitialSessionState object from one or more snap-ins. The variants of this method can create the object from a single snap-in located at a specified path, or from a set of snap-ins located at several paths. This method is introduced in Windows PowerShell 2.0.
public methodstaticCreateRestrictedCreates an InitialSessionState object that can be used to create sessions whose Windows PowerShell commands are restricted based on the capabilities of the session. This method is introduced in Windows PowerShell 2.0.
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodImportPSModuleAdds a list of modules to the initial session state. These modules are imported into the runspace when it is opened. This method is introduced in Windows PowerShell 2.0.
public methodImportPSModulesFromPathImports all Windows PowerShell modules from a module path by default.
public methodImportPSSnapInAdds a snap-in to the initial session state. When the snap-in is added to the collection, the assembly is loaded and all elements (cmdlets, formats, and types) are added to the corresponding elements in the InitialSessionState object. This method is introduced in Windows PowerShell 2.0.
public methodToString  (Inherited from Object)

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Send comments about this topic to Microsoft.
Mostrar:
© 2014 Microsoft