Microsoft.PowerShell Namespace

Classes

AdapterCodeMethods

Contains CodeMethod implementations for some adapted types like:

  1. DirectoryEntry Related Code Methods (a) Convert from DE LargeInteger to Int64. (b) Convert from DE Dn-With-Binary to string.
ConsoleKeyChordConverter
ConsoleShell

This class provides an entry point which is called by minishell's main to transfer control to Msh console host implementation.

DeserializingTypeConverter

Rehydrating type converter used during deserialization. It takes results of serializing some common types and rehydrates them back from property bags into live objects.

EngineInstaller

EngineInstaller is a class for facilitating registry of necessary information for monad engine.

This class will be built with monad console host dll (System.Management.Automation.dll).

At install time, installation utilities (like InstallUtil.exe) will call install this engine assembly based on the implementation in this class.

This class derives from base class PSInstaller. PSInstaller will handle the details about how information got written into registry. Here, the information about registry content is provided.

GetKeyHandlerCommand
GetPSReadlineOption
KeyHandler
ProcessCodeMethods

Helper functions for process info

PSAuthorizationManager

Defines the authorization policy that controls the way scripts (and other command types) are handled by Monad. This authorization policy enforces one of four levels, as defined by the 'ExecutionPolicy' value in one of the following locations:

In priority-order (highest priority first,) these come from:

- Machine-wide Group Policy
HKLM\Software\Policies\Microsoft\Windows\PowerShell
- Current-user Group Policy
HKCU\Software\Policies\Microsoft\Windows\PowerShell.
- Current session preference
ENV:PSExecutionPolicyPreference
- Current user machine preference
HKEY_CURRENT_USER\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
- Local machine preference
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell

Restricted - All .ps1 files are blocked. ps1xml files must be digitally signed, and by a trusted publisher. If you haven't made a trust decision on the publisher yet, prompting is done as in AllSigned mode. AllSigned - All .ps1 and .ps1xml files must be digitally signed. If signed and executed, Monad prompts to determine if files from the signing publisher should be run or not. RemoteSigned - Only .ps1 and .ps1xml files originating from the internet must be digitally signed. If remote, signed, and executed, Monad prompts to determine if files from the signing publisher should be run or not. This is the default setting. Unrestricted - No files must be signed. If a file originates from the internet, Monad provides a warning prompt to alert the user. To suppress this warning message, right-click on the file in File Explorer, select "Properties," and then "Unblock." Bypass - No files must be signed, and internet origin is not verified

PSConsoleReadLine
PSConsoleReadlineOptions
PSCorePSSnapIn

MshCoreMshSnapin (or MshCoreMshSnapinInstaller) is a class for facilitating registry of necessary information for monad core mshsnapin.

This class will be built with monad core engine dll (System.Management.Automation.dll).

PSHostPSSnapIn

PSHostMshSnapin (or PSHostMshSnapinInstaller) is a class for facilitating registry of necessary information for monad host mshsnapin.

This class will be built with monad host engine dll (Microsoft.PowerShell.ConsoleHost.dll).

PSSecurityPSSnapIn

MshSecurityMshSnapin (or MshSecurityMshSnapinInstaller) is a class for facilitating registry of necessary information for monad security mshsnapin.

This class will be built with monad security dll

RemoveKeyHandlerCommand
SetPSReadlineKeyHandlerCommand
SetPSReadlineOption
ToStringCodeMethods

Contains auxiliary ToString CodeMethod implementations for some types

UnmanagedPSEntry

Defines an entry point from unmanaged code to managed Msh

Enums

BellStyle
EditMode
ExecutionPolicy

Defines the different Execution Policies supported by the PSAuthorizationManager class.

ExecutionPolicyScope

Defines the available configuration scopes for an execution policy. They are in the following priority, with successive elements overriding the items that precede them: LocalMachine -> CurrentUser -> Runspace

HistorySaveStyle
TokenClassification