diff --git a/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs b/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs
index 63f683902..ad6b81ca0 100644
--- a/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs
+++ b/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs
@@ -105,7 +105,7 @@ namespace System.Management.Automation
}
///
- /// Clone from IClonable
+ /// Clone from ICloneable
///
public object Clone()
{
diff --git a/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs b/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs
index bbcba8d3e..70678b467 100644
--- a/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs
+++ b/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs
@@ -483,7 +483,7 @@ namespace System.Management.Automation.Remoting
///
/// Connect to Hyper-V socket server. This is a blocking call until a
- /// connection occurs or the timeout time has ellapsed.
+ /// connection occurs or the timeout time has elapsed.
///
/// The credential used for authentication
/// The configuration name of the PS session
@@ -566,8 +566,8 @@ namespace System.Management.Automation.Remoting
//
// There are 3 cases for the responseString received above.
// - "FAIL": credential is invalid
- // - "PASS": credentail is valid, but PowerShell Direct in VM does not support configuration (Server 2016 TP4 and before)
- // - "CONF": credentail is valid, and PowerShell Direct in VM supports configuration (Server 2016 TP5 and later)
+ // - "PASS": credential is valid, but PowerShell Direct in VM does not support configuration (Server 2016 TP4 and before)
+ // - "CONF": credential is valid, and PowerShell Direct in VM supports configuration (Server 2016 TP5 and later)
//
//
diff --git a/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs b/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs
index 88c606f31..2f79834f2 100644
--- a/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs
+++ b/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs
@@ -264,7 +264,7 @@ namespace System.Management.Automation.Remoting
#region Properties
///
- /// Exception reson for listener end event. Can be null
+ /// Exception reason for listener end event. Can be null
/// which indicates listener thread end is not due to an error.
///
public Exception Reason
@@ -503,7 +503,7 @@ namespace System.Management.Automation.Remoting
s_syncObject = new object();
// All PowerShell instances will start with the named pipe
- // and listner created and running.
+ // and listener created and running.
if (Platform.IsWindows)
{
IPCNamedPipeServerEnabled = true;
@@ -962,7 +962,7 @@ namespace System.Management.Automation.Remoting
///
/// Connect to named pipe server. This is a blocking call until a
- /// connection occurs or the timeout time has ellapsed.
+ /// connection occurs or the timeout time has elapsed.
///
/// Connection attempt timeout in milliseconds
public void Connect(
diff --git a/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs b/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs
index 8c3ce5ad5..b016a4cd6 100644
--- a/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs
+++ b/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs
@@ -545,7 +545,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// AuthenticationMaechanism converted to WSManAuthenticationMechanism type.
+ /// AuthenticationMechanism converted to WSManAuthenticationMechanism type.
/// This is internal.
///
internal WSManAuthenticationMechanism WSManAuthenticationMechanism { get; private set; } = WSManAuthenticationMechanism.WSMAN_FLAG_DEFAULT_AUTHENTICATION;
@@ -709,7 +709,7 @@ namespace System.Management.Automation.Runspaces
///
/// Specifies that no encryption will be used when doing remote operations over
- /// http. Unencrypted traffix is not allowed by default and must be enabled in
+ /// http. Unencrypted traffic is not allowed by default and must be enabled in
/// the local configuration
///
public bool NoEncryption { get; set; }
@@ -925,7 +925,7 @@ namespace System.Management.Automation.Runspaces
/// default server life time and default open
/// timeout
///
- /// uri of remote runspae
+ /// uri of remote runspace
/// When an
/// uri representing an invalid path is specified
public WSManConnectionInfo(Uri uri)
@@ -1089,7 +1089,7 @@ namespace System.Management.Automation.Runspaces
///
/// Converts to a WSManConnectionInfo. If conversion succeeds extracts
- /// the propery..otherwise returns default value
+ /// the property..otherwise returns default value
///
///
///
@@ -1246,7 +1246,7 @@ namespace System.Management.Automation.Runspaces
/// Used to resolve authentication from the parameters chosen by the user.
/// User has the following options:
/// 1. AuthMechanism + Credential
- /// 2. CertiticateThumbPrint
+ /// 2. CertificateThumbPrint
///
/// All the above are mutually exclusive.
///
@@ -1603,7 +1603,7 @@ namespace System.Management.Automation.Runspaces
/// ThumbPrint of a certificate used for connecting to a remote machine.
/// When this is specified, you dont need to supply credential and authentication
/// mechanism.
- /// Will always be empty to signfy that this is not supported.
+ /// Will always be empty to signify that this is not supported.
///
public override string CertificateThumbprint
{
@@ -2056,7 +2056,7 @@ namespace System.Management.Automation.Runspaces
///
/// Create a process through native Win32 APIs and return StdIn, StdOut, StdError reader/writers
/// This needs to be done via Win32 APIs because managed code creates anonymous synchronous pipes
- /// for redirected StdIn/Out and SSH (and PSRP) require asynchrous (overlapped) pipes, which must
+ /// for redirected StdIn/Out and SSH (and PSRP) require asynchronous (overlapped) pipes, which must
/// be through named pipes. Managed code for named pipes is unreliable and so this is done via
/// P-Invoking native APIs.
///
@@ -2362,7 +2362,7 @@ namespace System.Management.Automation.Runspaces
/// ThumbPrint of a certificate used for connecting to a remote machine.
/// When this is specified, you dont need to supply credential and authentication
/// mechanism.
- /// Will always be null to signfy that this is not supported.
+ /// Will always be null to signify that this is not supported.
///
public override string CertificateThumbprint
{
@@ -2483,7 +2483,7 @@ namespace System.Management.Automation.Runspaces
/// ThumbPrint of a certificate used for connecting to a remote machine.
/// When this is specified, you dont need to supply credential and authentication
/// mechanism.
- /// Will always be null to signfy that this is not supported.
+ /// Will always be null to signify that this is not supported.
///
public override string CertificateThumbprint
{
diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs
index 969cef80f..0fbfec24e 100644
--- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs
+++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs
@@ -856,7 +856,7 @@ namespace System.Management.Automation
///
/// This method generates a Remoting data structure handler message for
- /// that contains a repsonse to SetMaxRunspaces or SetMinRunspaces
+ /// that contains a response to SetMaxRunspaces or SetMinRunspaces
///
/// id of the clientRunspacePool
/// call id of the call at client
@@ -896,7 +896,7 @@ namespace System.Management.Automation
/// --------------------------------------------------------------------------
/// | D | TI | RPID | PID | Data | Type |
/// ---------------------------------------------------------------------------
- /// | S | Runspace | CRPID | 0 | null |GetAvailalbeRunspaces |
+ /// | S | Runspace | CRPID | 0 | null |GetAvailableRunspaces |
/// | | Pool | | | | |
/// --------------------------------------------------------------------------
internal static RemoteDataObject GenerateGetAvailableRunspaces(Guid clientRunspacePoolId,
@@ -914,13 +914,13 @@ namespace System.Management.Automation
///
/// This method generates a remoting data structure handler message for
- /// transfering a roles public key to the other side
+ /// transferring a roles public key to the other side
///
/// runspace pool id
/// public key to send across
/// destination that this message is
- /// targetted to
- /// data strucutre message
+ /// targeted to
+ /// data structure message
/// The message format is as under for this message
/// --------------------------------------------------------------------------
/// | D | TI | RPID | PID | Data | Type |
@@ -946,7 +946,7 @@ namespace System.Management.Automation
/// requesting a public key from the client to the server
///
/// runspace pool id
- /// data strucutre message
+ /// data structure message
/// The message format is as under for this message
/// --------------------------------------------------------------------------
/// | D | TI | RPID | PID | Data | Type |
@@ -969,7 +969,7 @@ namespace System.Management.Automation
///
/// runspace pool id
/// encrypted session key
- /// data strucutre message
+ /// data structure message
/// The message format is as under for this message
/// --------------------------------------------------------------------------
/// | D | TI | RPID | PID | Data | Type |
@@ -1312,7 +1312,7 @@ namespace System.Management.Automation
/// --------------------------------------------------------------------------------------
/// | D | TI | RPID | PID | Action | Data | Type |
/// --------------------------------------------------------------------------------------
- /// | S |PowerShell | CRPID | CPID | Data | intput data | PowerShellInput |
+ /// | S |PowerShell | CRPID | CPID | Data | input data | PowerShellInput |
/// | | | | | | | |
/// --------------------------------------------------------------------------------------
internal static RemoteDataObject GeneratePowerShellInput(object data, Guid clientRemoteRunspacePoolId,
@@ -1998,7 +1998,7 @@ namespace System.Management.Automation
}
///
- /// Generates RunspacePoolInitInfo object from a recevied PSObject
+ /// Generates RunspacePoolInitInfo object from a received PSObject
///
/// data object to decode
/// RunspacePoolInitInfo generated
@@ -2049,7 +2049,7 @@ namespace System.Management.Automation
}
///
- /// Gets the exception if any from the serializaed state info object
+ /// Gets the exception if any from the serialized state info object
///
///
///
diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs
index 29e0cab44..ae9f4045a 100644
--- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs
+++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs
@@ -417,7 +417,7 @@ namespace System.Management.Automation.Remoting
// check if the incoming call is GetBufferContents
// if so do the following:
// (a) Specify a warning message that the server is
- // attemping to read the screen buffer contents
+ // attempting to read the screen buffer contents
// on screen and it has been blocked
// (b) Modify the message so that call is not executed
else if (MethodId == RemoteHostMethodId.GetBufferContents)
diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs
index f78fdeddb..b920da046 100644
--- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs
+++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs
@@ -483,8 +483,8 @@ namespace System.Management.Automation.Remoting
}
else if (obj is PSObject && IsGenericIEnumerableOfInt(type))
{
- // we cannot create an instance of interface type like IEnumberable
- // Since a Collection implements IEnumberable, falling back to use
+ // we cannot create an instance of interface type like IEnumerable
+ // Since a Collection implements IEnumerable, falling back to use
// that.
return DecodeCollection((PSObject)obj, typeof(Collection));
}
diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs
index ed2be486a..ee2825a5d 100644
--- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs
+++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs
@@ -129,11 +129,11 @@ namespace System.Management.Automation.Remoting
///
- /// Creates a RemoteDataObject by deserialzing .
+ /// Creates a RemoteDataObject by deserializing .
///
///
///
- /// Defragmetor used to deserialize an object.
+ /// Defragmentor used to deserialize an object.
///
///
internal static RemoteDataObject CreateFrom(Stream serializedDataStream, Fragmentor defragmentor)
@@ -170,7 +170,7 @@ namespace System.Management.Automation.Remoting
#region Serialize / Deserialize
///
- /// Seriliazes the object into the stream specified. The serialization mechanism uses
+ /// Serializes the object into the stream specified. The serialization mechanism uses
/// UTF8 encoding to encode data.
///
///
@@ -193,7 +193,7 @@ namespace System.Management.Automation.Remoting
///
/// Serializes only the header portion of the object. ie., runspaceId,
- /// powerShellId, destinaion and dataType.
+ /// powerShellId, destination and dataType.
///
///
/// place where the serialized data is stored into.
diff --git a/src/System.Management.Automation/engine/remoting/common/fragmentor.cs b/src/System.Management.Automation/engine/remoting/common/fragmentor.cs
index c050aede8..e6a5c4a96 100644
--- a/src/System.Management.Automation/engine/remoting/common/fragmentor.cs
+++ b/src/System.Management.Automation/engine/remoting/common/fragmentor.cs
@@ -17,7 +17,7 @@ namespace System.Management.Automation.Remoting
///
/// This class is used to hold a fragment of remoting PSObject for transporting to remote computer.
///
- /// A large remoting PSObject will be broken into fragments. Each fragment has a ObjectId and a FragementId.
+ /// A large remoting PSObject will be broken into fragments. Each fragment has a ObjectId and a FragmentId.
/// The first fragment has a StartFragment marker. The last fragment also an EndFragment marker.
/// These fragments can be reassembled on the receiving
/// end by sequencing the fragment ids.
@@ -271,7 +271,7 @@ namespace System.Management.Automation.Remoting
/// If fragmentBytes is null.
///
///
- /// If startIndex is negative or fragmentBytes is not large enought to hold the entire header of
+ /// If startIndex is negative or fragmentBytes is not large enough to hold the entire header of
/// a binary encoded FragmentedRemoteObject.
///
internal static long GetObjectId(byte[] fragmentBytes, int startIndex)
@@ -305,7 +305,7 @@ namespace System.Management.Automation.Remoting
/// If fragmentBytes is null.
///
///
- /// If startIndex is negative or fragmentBytes is not large enought to hold the entire header of
+ /// If startIndex is negative or fragmentBytes is not large enough to hold the entire header of
/// a binary encoded FragmentedRemoteObject.
///
internal static long GetFragmentId(byte[] fragmentBytes, int startIndex)
@@ -340,7 +340,7 @@ namespace System.Management.Automation.Remoting
/// If fragmentBytes is null.
///
///
- /// If startIndex is negative or fragmentBytes is not large enought to hold the entire header of
+ /// If startIndex is negative or fragmentBytes is not large enough to hold the entire header of
/// a binary encoded FragmentedRemoteObject.
///
internal static bool GetIsStartFragment(byte[] fragmentBytes, int startIndex)
@@ -369,7 +369,7 @@ namespace System.Management.Automation.Remoting
/// If fragmentBytes is null.
///
///
- /// If startIndex is negative or fragmentBytes is not large enought to hold the entire header of
+ /// If startIndex is negative or fragmentBytes is not large enough to hold the entire header of
/// a binary encoded FragmentedRemoteObject.
///
internal static bool GetIsEndFragment(byte[] fragmentBytes, int startIndex)
@@ -398,7 +398,7 @@ namespace System.Management.Automation.Remoting
/// If fragmentBytes is null.
///
///
- /// If startIndex is negative or fragmentBytes is not large enought to hold the entire header of
+ /// If startIndex is negative or fragmentBytes is not large enough to hold the entire header of
/// a binary encoded FragmentedRemoteObject.
///
internal static int GetBlobLength(byte[] fragmentBytes, int startIndex)
@@ -613,7 +613,7 @@ namespace System.Management.Automation.Remoting
///
/// Returns a byte[] which holds data of fragment size (or) serialized data of
/// one object, which ever is greater. If data is not currently available, then
- /// the callback is registerd and called whenever the data is available.
+ /// the callback is registered and called whenever the data is available.
///
///
/// callback to call once the data becomes available.
@@ -955,7 +955,7 @@ namespace System.Management.Automation.Remoting
///
/// This class performs the fragmentation as well as defragmentation operations of large objects to be sent
/// to the other side. A large remoting PSObject will be broken into fragments. Each fragment has a ObjectId
- /// and a FragementId. The last fragment also has an end of fragment marker. These fragments can be reassembled
+ /// and a FragmentId. The last fragment also has an end of fragment marker. These fragments can be reassembled
/// on the receiving end by sequencing the fragment ids.
///
internal class Fragmentor
@@ -1005,7 +1005,7 @@ namespace System.Management.Automation.Remoting
/// The object to be fragmented. Caller should make sure this is not null.
///
///
- /// Caller specified dataToStore to which the fragements are added
+ /// Caller specified dataToStore to which the fragments are added
/// one-by-one
///
internal void Fragment(RemoteDataObject obj, SerializedDataStream dataToBeSent)
diff --git a/src/System.Management.Automation/engine/remoting/common/misc.cs b/src/System.Management.Automation/engine/remoting/common/misc.cs
index 04bd59e9b..af38a4a66 100644
--- a/src/System.Management.Automation/engine/remoting/common/misc.cs
+++ b/src/System.Management.Automation/engine/remoting/common/misc.cs
@@ -145,7 +145,7 @@ namespace System.Management.Automation
NegotiationReceived = 7,
///
- /// Used by server to wait for negotation from client.
+ /// Used by server to wait for negotiation from client.
///
NegotiationPending = 8,
@@ -181,9 +181,9 @@ namespace System.Management.Automation
///
/// for Server - Have sent a request to the remote end to
/// send a public key
- /// for Cleint - have received a PK request from server
+ /// for Client - have received a PK request from server
///
- /// Applicable to both cleint and server
+ /// Applicable to both client and server
EstablishedAndKeyRequested = 14,
///
@@ -392,7 +392,7 @@ namespace System.Management.Automation
///
/// In the presence of ambient remoting, the command assumes
- /// all responsibility for targetting the remote computer;
+ /// all responsibility for targeting the remote computer;
/// PowerShell Remoting is not supported.
///
OwnedByCommand
diff --git a/src/System.Management.Automation/engine/remoting/common/remotesession.cs b/src/System.Management.Automation/engine/remoting/common/remotesession.cs
index 00b56feb6..d0c4add15 100644
--- a/src/System.Management.Automation/engine/remoting/common/remotesession.cs
+++ b/src/System.Management.Automation/engine/remoting/common/remotesession.cs
@@ -7,7 +7,7 @@ using System.Management.Automation.Remoting;
namespace System.Management.Automation
{
///
- /// This abstract class is designed to provide InstandId and self identification for
+ /// This abstract class is designed to provide InstanceId and self identification for
/// client and server remote session classes.
///
internal abstract class RemoteSession
diff --git a/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs b/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs
index eb30268e4..c5692cadd 100644
--- a/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs
+++ b/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs
@@ -241,7 +241,7 @@ namespace System.Management.Automation.Remoting
PSDefaultSessionOptionDescription = 1002,
PSSenderInfoDescription = 1004,
- // IPC for Backgroud jobs related errors: 2000
+ // IPC for Background jobs related errors: 2000
IPCUnknownNodeType = 2001,
IPCInsufficientDataforElement = 2002,
IPCWrongAttributeCountForDataElement = 2003,
@@ -296,7 +296,7 @@ namespace System.Management.Automation.Remoting
#region Constructors
///
- /// Default construtor.
+ /// Default constructor.
///
public PSRemotingDataStructureException()
: base(PSRemotingErrorInvariants.FormatResourceString(RemotingErrorIdStrings.DefaultRemotingExceptionMessage, typeof(PSRemotingDataStructureException).FullName))
@@ -350,7 +350,7 @@ namespace System.Management.Automation.Remoting
/// This constuctor takes an inner exception and an error id.
///
///
- /// Inner excetion.
+ /// Inner exception.
///
///
/// The resource string in the base resource file.
@@ -460,7 +460,7 @@ namespace System.Management.Automation.Remoting
/// This constuctor takes an inner exception and an error id.
///
///
- /// Inner excetion.
+ /// Inner exception.
///
///
/// The resource string in the base resource file.
@@ -602,7 +602,7 @@ namespace System.Management.Automation.Remoting
/// This constuctor takes an inner exception and an error id.
///
///
- /// Inner excetion.
+ /// Inner exception.
///
///
/// The resource string in the base resource file.
diff --git a/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs b/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs
index eaf4fd919..a661d5be1 100644
--- a/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs
+++ b/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs
@@ -64,10 +64,10 @@ namespace System.Management.Automation.Remoting
internal abstract class IThrottleOperation
{
///
- /// This method should handle the actual operation whcih need to be
+ /// This method should handle the actual operation which need to be
/// controlled and performed. Examples of this can be Opening remote
/// runspace, invoking expression in a remote runspace, etc. Once
- /// an event is successfully recieved as a result of this function,
+ /// an event is successfully received as a result of this function,
/// the handler has to ensure that it raises an OperationComplete
/// event with StartComplete or StopComplete for the throttle manager
/// to handle
@@ -80,7 +80,7 @@ namespace System.Management.Automation.Remoting
/// remote runspaces, the user might hit ctrl-C. In which case, the
/// pending runspaces to be opened will actually be signalled through
/// this method to stop operation and return back. This method also
- /// needs to be asynchronous. Once an event is successfully recieved
+ /// needs to be asynchronous. Once an event is successfully received
/// as a result of this function, the handler has to ensure that it
/// raises an OperationComplete event with StopComplete for the
/// throttle manager to handle. It is important that this function
@@ -91,7 +91,7 @@ namespace System.Management.Automation.Remoting
///
/// Event which will be triggered when the operation is complete. It is
- /// assumed that all the operations perfomed by StartOperation and
+ /// assumed that all the operations performed by StartOperation and
/// StopOperation are asynchronous. The submitter of operations may
/// subscribe to this event to know when it's complete (or it can handle
/// the synchronization with its scheduler) and the throttle
@@ -107,7 +107,7 @@ namespace System.Management.Automation.Remoting
/// In the initial implementation of ThrottleManager stopping
/// individual operations was not supported. When the support
/// for stopping individual operations was added, there was
- /// the following problem - if an opertaion is not there in
+ /// the following problem - if an operation is not there in
/// the pending queue and in the startOperationQueue as well,
/// then the following two scenarios are possible
/// (a) Operation was started and start completed
@@ -139,7 +139,7 @@ namespace System.Management.Automation.Remoting
///
/// Class which handles the throttling operations. This class is singleton and therefore
/// when used either across cmdlets or at the infrastructure level it will ensure that
- /// there aren't more operations by way of accumalation than what is intended by design.
+ /// there aren't more operations by way of accumulation than what is intended by design.
///
/// This class contains a queue of items, each of which has the
///
@@ -600,7 +600,7 @@ namespace System.Management.Automation.Remoting
///
/// Dispose method of IDisposable. Any cmdlet that uses
/// the throttle manager needs to call this method from its
- /// Dipose method
+ /// Dispose method
///
public void Dispose()
{