Sdílet prostřednictvím


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.
ChangePSReadLineKeyHandlerCommandBase
ConsoleKeyChordConverter

A helper class for converting strings to ConsoleKey chords.

ConsoleShell

This class provides an entry point which is called to transfer control to 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

The class is used as the output type for the cmdlet Get-PSReadLineKeyHandler

ProcessCodeMethods

Helper functions for process info.

PSAuthorizationManager

Defines the authorization policy that controls the way scripts (and other command types) are handled by PowerShell. 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, PowerShell 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, PowerShell 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, PowerShell 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." Requires Shell. Bypass - No files must be signed, and internet origin is not verified.

PSConsoleReadLine
PSConsoleReadLine.HistoryItem

History details including the command line, source, and start and approximate execution time.

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).

PSManagementPSSnapIn

MshManagementMshSnapin (or MshManagementMshSnapinInstaller) is a class for facilitating registry of necessary information for monad management mshsnapin.

This class will be built with monad management 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

PSUtilityPSSnapIn

MshUtilityMshSnapin (or MshUtilityMshSnapinInstaller) is a class for facilitating registry of necessary information for monad utility mshsnapin.

This class will be built with monad utility dll

RemoveKeyHandlerCommand
SetPSReadLineKeyHandlerCommand
SetPSReadLineOption
ToStringCodeMethods

Contains auxiliary ToString CodeMethod implementations for some types.

UnmanagedPSEntry

Defines an entry point from unmanaged code to PowerShell.

VTColorUtils

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
KeyHandlerGroup

A group used for sorting key handlers.

ViMode
ViModeStyle