Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ModuleAccessMode Enumeration

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines how a module can be accessed when adding or removing the module, such as a read-only or read-write module. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

Public Enumeration ModuleAccessMode

Member nameDescription
Constant

The module cannot be removed. This field is introduced in Windows PowerShell 2.0.

ReadOnly

The module can be removed only if the Force parameter of the Remove-Module cmdlet is specified. This field is introduced in Windows PowerShell 2.0.

ReadWrite

The module can be added to the runspace by using the Import-Module cmdlet or removed using the Remove-Module cmdlet. This field is introduced in Windows PowerShell 2.0.

Return to top

Community Additions

Show: