mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
spelling: public identifiers in src/Microsoft.PowerShell.Commands.Management
This commit is contained in:
1 parent
c2dae1d08e
commit
0bba0328bc
7 files changed
+32
-32
No files matched your search
@@ -275,7 +275,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
if ((_transportProtocol == TransportProtocol.DCOM) && haveWsmanAuthenticationParam)
|
||||
{
|
||||
string errMsg = StringUtil.Format(ComputerResources.StopCommandWSManAuthProtcolConflict, ComputerResources.StopCommandParamMessage);
|
||||
string errMsg = StringUtil.Format(ComputerResources.StopCommandWSManAuthProtocolConflict, ComputerResources.StopCommandParamMessage);
|
||||
ThrowTerminatingError(
|
||||
new ErrorRecord(
|
||||
new PSArgumentException(errMsg),
|
||||
@@ -286,7 +286,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
if ((_transportProtocol == TransportProtocol.WSMan) && (haveDcomAuthenticationParam || haveDcomImpersonation))
|
||||
{
|
||||
string errMsg = StringUtil.Format(ComputerResources.StopCommandAuthProtcolConflict, ComputerResources.StopCommandParamMessage);
|
||||
string errMsg = StringUtil.Format(ComputerResources.StopCommandAuthProtocolConflict, ComputerResources.StopCommandParamMessage);
|
||||
ThrowTerminatingError(
|
||||
new ErrorRecord(
|
||||
new PSArgumentException(errMsg),
|
||||
@@ -1481,7 +1481,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
if (restoreStatus.Equals(0))
|
||||
WriteObject(ComputerResources.RestoreFailed);
|
||||
else if (restoreStatus.Equals(1))
|
||||
WriteObject(ComputerResources.RestoreSuceess);
|
||||
WriteObject(ComputerResources.RestoreSuccess);
|
||||
else if (restoreStatus.Equals(2))
|
||||
WriteObject(ComputerResources.RestoreInterrupted);
|
||||
}
|
||||
@@ -1533,7 +1533,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
{
|
||||
foreach (int id in sequenceList.Keys)
|
||||
{
|
||||
string message = StringUtil.Format(ComputerResources.NoResorePoint, id);
|
||||
string message = StringUtil.Format(ComputerResources.NoRestorePoint, id);
|
||||
ArgumentException e = new ArgumentException(message);
|
||||
ErrorRecord errorrecord = new ErrorRecord(e, "NoResorePoint", ErrorCategory.InvalidArgument, null);
|
||||
WriteError(errorrecord);
|
||||
@@ -3368,7 +3368,7 @@ $result
|
||||
|
||||
if ((_transportProtocol == TransportProtocol.DCOM) && haveWsmanAuthenticationParam)
|
||||
{
|
||||
string errMsg = StringUtil.Format(ComputerResources.StopCommandWSManAuthProtcolConflict, ComputerResources.StopCommandParamMessage);
|
||||
string errMsg = StringUtil.Format(ComputerResources.StopCommandWSManAuthProtocolConflict, ComputerResources.StopCommandParamMessage);
|
||||
ThrowTerminatingError(
|
||||
new ErrorRecord(
|
||||
new PSArgumentException(errMsg),
|
||||
@@ -3379,7 +3379,7 @@ $result
|
||||
|
||||
if ((_transportProtocol == TransportProtocol.WSMan) && (haveDcomAuthenticationParam || haveDcomImpersonation))
|
||||
{
|
||||
string errMsg = StringUtil.Format(ComputerResources.StopCommandAuthProtcolConflict, ComputerResources.StopCommandParamMessage);
|
||||
string errMsg = StringUtil.Format(ComputerResources.StopCommandAuthProtocolConflict, ComputerResources.StopCommandParamMessage);
|
||||
ThrowTerminatingError(
|
||||
new ErrorRecord(
|
||||
new PSArgumentException(errMsg),
|
||||
|
||||
+3
-3
@@ -820,7 +820,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
if (otherInfo != null)
|
||||
{
|
||||
output.CsPhyicallyInstalledMemory = otherInfo.physicallyInstalledMemory;
|
||||
output.CsPhysicallyInstalledMemory = otherInfo.physicallyInstalledMemory;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2749,7 +2749,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// Size of physically installed memory, as reported by the Windows API
|
||||
/// function GetPhysicallyInstalledSystemMemory
|
||||
/// </summary>
|
||||
public UInt64? CsPhyicallyInstalledMemory { get; internal set; }
|
||||
public UInt64? CsPhysicallyInstalledMemory { get; internal set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of a user that is logged on currently.
|
||||
@@ -3427,7 +3427,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// <summary>
|
||||
/// Availability status is Not Installed
|
||||
/// </summary>
|
||||
NotIntalled = 11,
|
||||
NotInstalled = 11,
|
||||
|
||||
/// <summary>
|
||||
/// Availability status is Install Error
|
||||
|
||||
@@ -653,11 +653,11 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
catch (InvalidOperationException exception)
|
||||
{
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModuleFileVer, "CouldnotEnumerateModuleFileVer", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModuleFileVer, "CouldNotEnumerateModuleFileVer", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
catch (ArgumentException exception)
|
||||
{
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModuleFileVer, "CouldnotEnumerateModuleFileVer", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModuleFileVer, "CouldNotEnumerateModuleFileVer", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
catch (Win32Exception exception)
|
||||
{
|
||||
@@ -669,18 +669,18 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
else
|
||||
{
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModuleFileVer, "CouldnotEnumerateModuleFileVer", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModuleFileVer, "CouldNotEnumerateModuleFileVer", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
}
|
||||
catch (Win32Exception ex)
|
||||
{
|
||||
WriteNonTerminatingError(process, ex, ProcessResources.CouldnotEnumerateModuleFileVer, "CouldnotEnumerateModuleFileVer", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, ex, ProcessResources.CouldNotEnumerateModuleFileVer, "CouldNotEnumerateModuleFileVer", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
CommandsCommon.CheckForSevereException(this, exception);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModuleFileVer, "CouldnotEnumerateModuleFileVer", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModuleFileVer, "CouldNotEnumerateModuleFileVer", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
}
|
||||
else if (Module.IsPresent)
|
||||
@@ -700,18 +700,18 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
else
|
||||
{
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModules, "CouldnotEnumerateModules", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModules, "CouldNotEnumerateModules", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
}
|
||||
catch (Win32Exception ex)
|
||||
{
|
||||
WriteNonTerminatingError(process, ex, ProcessResources.CouldnotEnumerateModules, "CouldnotEnumerateModules", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, ex, ProcessResources.CouldNotEnumerateModules, "CouldNotEnumerateModules", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
CommandsCommon.CheckForSevereException(this, exception);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModules, "CouldnotEnumerateModules", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModules, "CouldNotEnumerateModules", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
}
|
||||
else if (FileVersionInfo.IsPresent)
|
||||
@@ -723,11 +723,11 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
catch (InvalidOperationException exception)
|
||||
{
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateFileVer, "CouldnotEnumerateFileVer", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateFileVer, "CouldNotEnumerateFileVer", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
catch (ArgumentException exception)
|
||||
{
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateFileVer, "CouldnotEnumerateFileVer", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateFileVer, "CouldNotEnumerateFileVer", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
catch (Win32Exception exception)
|
||||
{
|
||||
@@ -739,18 +739,18 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
else
|
||||
{
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateFileVer, "CouldnotEnumerateFileVer", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateFileVer, "CouldNotEnumerateFileVer", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
}
|
||||
catch (Win32Exception ex)
|
||||
{
|
||||
WriteNonTerminatingError(process, ex, ProcessResources.CouldnotEnumerateFileVer, "CouldnotEnumerateFileVer", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, ex, ProcessResources.CouldNotEnumerateFileVer, "CouldNotEnumerateFileVer", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
CommandsCommon.CheckForSevereException(this, exception);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateFileVer, "CouldnotEnumerateFileVer", ErrorCategory.PermissionDenied);
|
||||
WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateFileVer, "CouldNotEnumerateFileVer", ErrorCategory.PermissionDenied);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
+2
-2
@@ -722,7 +722,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// PInvoke AdjustTokenPrivilege API
|
||||
/// </summary>
|
||||
/// <param name="TokenHandle"></param>
|
||||
/// <param name="DisableAllPrivilegs"></param>
|
||||
/// <param name="DisableAllPrivileges"></param>
|
||||
/// <param name="NewState"></param>
|
||||
/// <param name="BufferLength"></param>
|
||||
/// <param name="PreviousState"></param>
|
||||
@@ -730,7 +730,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// <returns></returns>
|
||||
[DllImport(AdjustTokenPrivilegesApiDllName, SetLastError = true, CharSet = CharSet.Unicode, BestFitMapping = false)]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
public static extern bool AdjustTokenPrivileges(IntPtr TokenHandle, bool DisableAllPrivilegs,
|
||||
public static extern bool AdjustTokenPrivileges(IntPtr TokenHandle, bool DisableAllPrivileges,
|
||||
ref TOKEN_PRIVILEGES NewState, int BufferLength, IntPtr PreviousState, IntPtr ReturnLength);
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
<data name="CimJob_InvalidClassName" xml:space="preserve">
|
||||
<value>Cannot find the {0} class on the {1} CIM server. Verify the value of the ClassName xml attribute in Cmdlet Definition XML and retry. Valid class name example: ROOT\cimv2\Win32_Process.</value>
|
||||
<comment>{StrContains="ClassName"} {StrContains="ROOT\cimv2\Win32_Process"}
|
||||
{0} is a placeholder for a name of a (potentially misspelled) CIM class. Example: "Win32_Proccess".
|
||||
{0} is a placeholder for a name of a (potentially misspelled) CIM class. Example: "Win32_Process".
|
||||
{1} is a placeholder for a server name. Example: "localhost".</comment>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
|
||||
@@ -144,13 +144,13 @@
|
||||
<data name="RestoreFailed" xml:space="preserve">
|
||||
<value>The last attempt to restore the computer failed.</value>
|
||||
</data>
|
||||
<data name="RestoreSuceess" xml:space="preserve">
|
||||
<data name="RestoreSuccess" xml:space="preserve">
|
||||
<value>The computer has been restored to the specified restore point.</value>
|
||||
</data>
|
||||
<data name="RestoreInterrupted" xml:space="preserve">
|
||||
<value>The last attempt to restore the computer was interrupted.</value>
|
||||
</data>
|
||||
<data name="NoResorePoint" xml:space="preserve">
|
||||
<data name="NoRestorePoint" xml:space="preserve">
|
||||
<value>The command cannot locate the "{0}" restore point. Verify the "{0}" sequence number, and then try the command again.</value>
|
||||
</data>
|
||||
<data name="NoPingResult" xml:space="preserve">
|
||||
@@ -399,7 +399,7 @@
|
||||
<data name="RenameCommandWsmanAuthParamConflict" xml:space="preserve">
|
||||
<value>Parameter WsmanAuthentication cannot be specified with the DCOM protocol. Parameter WSManAuthentication is valid only when the WSMan protocol is used.</value>
|
||||
</data>
|
||||
<data name="StopCommandAuthProtcolConflict" xml:space="preserve">
|
||||
<data name="StopCommandAuthProtocolConflict" xml:space="preserve">
|
||||
<value>Parameters DcomAuthentication and Impersonation cannot be specified with the WSMan protocol. {0}</value>
|
||||
</data>
|
||||
<data name="StopCommandParamMessage" xml:space="preserve">
|
||||
@@ -408,7 +408,7 @@
|
||||
<data name="StopCommandParamWSManAuthConflict" xml:space="preserve">
|
||||
<value>Parameter WsmanAuthentication cannot be specified with DcomAuthentication or Impersonation parameters. {0}</value>
|
||||
</data>
|
||||
<data name="StopCommandWSManAuthProtcolConflict" xml:space="preserve">
|
||||
<data name="StopCommandWSManAuthProtocolConflict" xml:space="preserve">
|
||||
<value>Parameter WsmanAuthentication cannot be specified with the DCOM protocol. {0}</value>
|
||||
</data>
|
||||
<data name="InvalidParameterDCOMNotSupported" xml:space="preserve">
|
||||
|
||||
@@ -132,13 +132,13 @@
|
||||
<data name="ProcessNameForConfirmation" xml:space="preserve">
|
||||
<value>{0} ({1})</value>
|
||||
</data>
|
||||
<data name="CouldnotEnumerateModules" xml:space="preserve">
|
||||
<data name="CouldNotEnumerateModules" xml:space="preserve">
|
||||
<value>Cannot enumerate the modules of the "{0}" process.</value>
|
||||
</data>
|
||||
<data name="CouldnotEnumerateFileVer" xml:space="preserve">
|
||||
<data name="CouldNotEnumerateFileVer" xml:space="preserve">
|
||||
<value>Cannot enumerate the file version information of the "{0}" process.</value>
|
||||
</data>
|
||||
<data name="CouldnotEnumerateModuleFileVer" xml:space="preserve">
|
||||
<data name="CouldNotEnumerateModuleFileVer" xml:space="preserve">
|
||||
<value>Cannot enumerate the modules and the file version information of the "{0}" process.</value>
|
||||
</data>
|
||||
<data name="ConfirmStopProcess" xml:space="preserve">
|
||||
|
||||
Reference in new issue
Block a user