diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs index 24377e1831..2ea726c774 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs @@ -855,7 +855,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// certificate parameter set /// - internal const string CertificatePrameterSet = "CertificatePrameterSet"; + internal const string CertificateParameterSet = "CertificateParameterSet"; /// /// CimInstance parameter alias diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs index a765abae19..608385fe2a 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs @@ -220,7 +220,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets this.nameSpace = theNameSpace; this.queryDialect = ConstValue.GetQueryDialectWithDefault(theQueryDialect); this.queryExpression = theQueryExpression; - this.opreationTimeout = theOpreationTimeout; + this.operationTimeout = theOpreationTimeout; this.computerName = theComputerName; } @@ -299,7 +299,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets this.nameSpace, this.queryDialect, this.queryExpression, - this.opreationTimeout); + this.operationTimeout); } else { @@ -308,7 +308,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets this.nameSpace, this.queryDialect, this.queryExpression, - this.opreationTimeout); + this.operationTimeout); } status = Status.Started; } @@ -392,7 +392,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets private string nameSpace; private string queryDialect; private string queryExpression; - private UInt32 opreationTimeout; + private UInt32 operationTimeout; #endregion #endregion } diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs index 87d688c375..d17891c084 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs @@ -971,8 +971,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets CimTestCimSessionContext testCimSessionContext = context as CimTestCimSessionContext; UInt32 sessionId = this.sessionState.GenerateSessionId(); - string orginalSessioName = testCimSessionContext.CimSessionWrapper.Name; - string sessionName = (orginalSessioName != null) ? orginalSessioName : String.Format(CultureInfo.CurrentUICulture, @"{0}{1}", CimSessionState.CimSessionClassName, sessionId); + string originalSessionName = testCimSessionContext.CimSessionWrapper.Name; + string sessionName = (originalSessionName != null) ? originalSessionName : String.Format(CultureInfo.CurrentUICulture, @"{0}{1}", CimSessionState.CimSessionClassName, sessionId); // detach CimSession from the proxy object CimSession createdCimSession = testCimSessionContext.Proxy.Detach(); diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs index dc8d213557..46e40ef539 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs @@ -141,17 +141,17 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets } Exception exception = null; - CimInstance intance = cmdlet.CimInstance; + CimInstance instance = cmdlet.CimInstance; // For CimInstance parameter sets, Property is an optional parameter if (cmdlet.Property != null) { - if (!SetProperty(cmdlet.Property, ref intance, ref exception)) + if (!SetProperty(cmdlet.Property, ref instance, ref exception)) { cmdlet.ThrowTerminatingError(exception, action); return; } } - proxy.ModifyInstanceAsync(nameSpace, intance); + proxy.ModifyInstanceAsync(nameSpace, instance); } break; case CimBaseCommand.QueryComputerSet: diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs index 21c109d234..99b7d46bd0 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs @@ -64,7 +64,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// This is specificly for wsman protocol. /// [Parameter(ValueFromPipelineByPropertyName = true, - ParameterSetName = CertificatePrameterSet)] + ParameterSetName = CertificateParameterSet)] public String CertificateThumbprint { get { return certificatethumbprint; } diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs index edf8f370d1..0c32a51805 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs @@ -157,11 +157,11 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// Flag used to control generating message into powershell /// - private static bool genrateVerboseMessage = true; - internal static bool GenrateVerboseMessage + private static bool generateVerboseMessage = true; + internal static bool GenerateVerboseMessage { - get { return genrateVerboseMessage; } - set { genrateVerboseMessage = value; } + get { return generateVerboseMessage; } + set { generateVerboseMessage = value; } } /// @@ -203,7 +203,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal static string removeParameterSetName = @"Remove parameter set {0} name from cache"; internal static string currentParameterSetNameCount = @"Cache have {0} parameter set names"; internal static string currentParameterSetNameInCache = @"Cache have parameter set {0} valid {1}"; - internal static string currentnonMadatoryParameterSetInCache = @"Cache have optional parameter set {0} valid {1}"; + internal static string currentnonMandatoryParameterSetInCache = @"Cache have optional parameter set {0} valid {1}"; internal static string optionalParameterSetNameCount = @"Cache have {0} optional parameter set names"; internal static string finalParameterSetName = @"------Final parameter set name of the cmdlet is {0}"; internal static string addToOptionalParameterSet = @"Add to optional ParameterSetNames {0}";