无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 158|回复: 15
打印 上一主题 下一主题

[求助] 大家的powershell帮助是中文的还是英文的?

[复制链接]
跳转到指定楼层
1#
发表于 3 小时前 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 2013kyj 于 2024-9-20 06:42 编辑

我的两台电脑一直在使用初心大佬的精简版, 都集成了powershell, 但是帮助里全是英文, 想知道原版的win10或win11集成的Powershell帮助是否也是英文的

操作方法:
Win + R 弹出运行, 然后输入 powershell ise 回车, 会弹出 ise 脚本编辑器,
随便输入一个命令, 例如  Get-Process  然后光标放到命令中, 按下F1 会弹出该命令的帮助窗口, 我的帮助窗口中的内容如下:

  1. 摘要
  2.     Gets the processes that are running on the local computer or a remote computer.

  3. 说明
  4.     The `Get-Process` cmdlet gets the processes on a local or remote computer.
  5.    
  6.     Without parameters, this cmdlet gets all of the processes on the local computer. You can also specify a particular process by process name or process ID (PID) or pass a process object through the pipeline to this cmdlet.
  7.    
  8.     By default, this cmdlet returns a process object that has detailed information about the process and supports methods that let you start and stop the process. You can also use the parameters of the `Get-Process` cmdlet to get file version information for the program that runs in the process and to get the modules that the process loaded.


  9. 参数
  10.     -ComputerName <System.String[]>
  11.         Specifies the computers for which this cmdlet gets active processes. The default is the local computer.
  12.         

  13.         必需?        false
  14.         位置?        named
  15.         默认值        Local computer
  16.         是否接受管道输入?  True (ByPropertyName)
  17.         是否接受通配符?   false

  18.     -FileVersionInfo <System.Management.Automation.SwitchParameter>
  19.         Indicates that this cmdlet gets the file version information for the program that runs in the process.
  20.         

  21.         必需?        false
  22.         位置?        named
  23.         默认值        False
  24.         是否接受管道输入?  False
  25.         是否接受通配符?   false

  26.     -Id <System.Int32[]>
  27.         Specifies one or more processes by process ID (PID). To specify multiple IDs, use commas to separate the IDs. To find the PID of a process, type `Get-Process`.

  28.         必需?        true
  29.         位置?        named
  30.         默认值        None
  31.         是否接受管道输入?  True (ByPropertyName)
  32.         是否接受通配符?   false

  33.     -IncludeUserName <System.Management.Automation.SwitchParameter>
  34.         Indicates that the UserName value of the Process object is returned with results of the command.

  35.         必需?        true
  36.         位置?        named
  37.         默认值        False
  38.         是否接受管道输入?  False
  39.         是否接受通配符?   false

  40.     -InputObject <System.Diagnostics.Process[]>
  41.         Specifies one or more process objects. Enter a variable that contains the objects, or type a command or expression that gets the objects.

  42.         必需?        true
  43.         位置?        named
  44.         默认值        None
  45.         是否接受管道输入?  True (ByValue)
  46.         是否接受通配符?   false

  47.     -Module <System.Management.Automation.SwitchParameter>
  48.         Indicates that this cmdlet gets the modules that have been loaded by the processes.
  49.         

  50.         必需?        false
  51.         位置?        named
  52.         默认值        False
  53.         是否接受管道输入?  False
  54.         是否接受通配符?   false

  55.     -Name <System.String[]>
  56.         Specifies one or more processes by process name. You can type multiple process names (separated by commas) and use wildcard characters. The parameter name (`Name`) is optional.

  57.         必需?        false
  58.         位置?        0
  59.         默认值        None
  60.         是否接受管道输入?  True (ByPropertyName)
  61.         是否接受通配符?   true



  62. 语法
  63.     Get-Process [[-Name] <System.String[]>] [-ComputerName <System.String[]>] [-FileVersionInfo ] [-Module ] [<CommonParameters>]

  64.     Get-Process [-ComputerName <System.String[]>] [-FileVersionInfo ] -Id <System.Int32[]> [-Module ] [<CommonParameters>]

  65.     Get-Process [-ComputerName <System.String[]>] [-FileVersionInfo ] -InputObject <System.Diagnostics.Process[]> [-Module ] [<CommonParameters>]

  66.     Get-Process -Id <System.Int32[]> -IncludeUserName  [<CommonParameters>]

  67.     Get-Process [[-Name] <System.String[]>] -IncludeUserName  [<CommonParameters>]

  68.     Get-Process -IncludeUserName  -InputObject <System.Diagnostics.Process[]> [<CommonParameters>]


  69. 输入
  70.     System.Diagnostics.Process
  71.     You can pipe a process object to this cmdlet.

  72. 输出
  73.     System.Diagnostics.Process
  74.     By default, this cmdlet returns a System.Diagnostics.Process object.
  75.     System.Diagnostics.FileVersionInfo
  76.     If you use the FileVersionInfo parameter, this cmdlet returns a FileVersionInfo object.
  77.     System.Diagnostics.ProcessModule
  78.     If you use the Module parameter, without the FileVersionInfo parameter, this cmdlet returns a ProcessModule object.

  79. 注释
  80.     Windows PowerShell includes the following aliases for `Get-Process`:
  81.    

  82. 示例
  83.     Example 1: Get a list of all active processes on the local computer
  84.     Get-Process
  85.    
  86.     This command gets a list of all active processes running on the local computer. For a definition of each column, see the Notes (#notes)section.
  87.     Example 2: Get all available data about one or more processes
  88.     Get-Process winword, explorer | Format-List *
  89.    
  90.     This command gets all available data about the Winword and Explorer processes on the computer. It uses the Name parameter to specify the processes, but it omits the optional parameter name. The pipeline operator (`|`) passes the data to the `Format-List` cmdlet, which displays all available properties (`*`) of the Winword and Explorer process objects.

  91. You can also identify the processes by their process IDs. For instance, `Get-Process -Id 664, 2060`.
  92.     Example 3: Get all processes with a working set greater than a specified size
  93.     Get-Process | Where-Object {$_.WorkingSet -gt 20000000}
  94.    
  95.     This command gets all processes that have a working set greater than 20 MB. It uses the `Get-Process` cmdlet to get all running processes. The pipeline operator (`|`) passes the process objects to the `Where-Object` cmdlet, which selects only the object with a value greater than 20,000,000 bytes for the WorkingSet property. WorkingSet is one of many properties of process objects. To see all of the properties, type `Get-Process | Get-Member`. By default, the values of all amount properties are in bytes, even though the default display lists them in kilobytes and megabytes.
  96.     Example 4: List processes on the computer in groups based on priority
  97.     $A = Get-Process
  98.     $A | Get-Process | Format-Table -View priority
  99.    
  100.     These commands list the processes on the computer in groups based on their priority class. The first command gets all the processes on the computer and then stores them in the `$A` variable.

  101. The second command pipes the Process object stored in the `$A` variable to the `Get-Process` cmdlet, then to the `Format-Table` cmdlet, which formats the processes by using the Priority view.

  102. The Priority view, and other views, are defined in the PS1XML format files in the PowerShell home directory (`$pshome`).
  103.     Example 5: Add a property to the standard Get-Process output display
  104.     Get-Process powershell | Format-Table `
  105.         @{Label = "NPM(K)"; Expression = {[int]($_.NPM / 1024)}},
  106.         @{Label = "PM(K)"; Expression = {[int]($_.PM / 1024)}},
  107.         @{Label = "WS(K)"; Expression = {[int]($_.WS / 1024)}},
  108.         @{Label = "VM(M)"; Expression = {[int]($_.VM / 1MB)}},
  109.         @{Label = "CPU(s)"; Expression = {if ($_.CPU) {$_.CPU.ToString("N")}}},
  110.         Id, ProcessName, StartTime -AutoSize
  111.    
  112.     NPM(K)  PM(K) WS(K)   VM(M)  CPU(s)    Id ProcessName StartTime
  113.     ------  ----- -----   -----  ------    -- ----------- ---------
  114.        143 239540 259384 2366162 22.73  12720 powershell  12/5/2022 3:21:51 PM
  115.        114  61776 104588 2366127 11.45  18336 powershell  12/5/2022 7:30:53 AM
  116.        156  77924  82060 2366185 10.47  18812 powershell  12/5/2022 7:30:52 AM
  117.         85  48216 115192 2366074 1.14   24428 powershell  12/8/2022 9:14:15 AM
  118.    
  119.     This example retrieves processes from the local computer. The retrieved processes are piped to the `Format-Table` command that adds the StartTime property to the standard `Get-Process` output display.
  120.     ------- Example 6: Get version information for a process -------
  121.     Get-Process powershell -FileVersionInfo
  122.    
  123.     ProductVersion   FileVersion      FileName
  124.     --------------   -----------      --------
  125.     6.1.6713.1       6.1.6713.1 (f... C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe
  126.    
  127.     This command uses the FileVersionInfo parameter to get the version information for the `powershell.exe` file that is the main module for the PowerShell process.

  128. To run this command with processes that you do not own on Windows Vista and later versions of Windows, you must open PowerShell with the Run as administrator option.
  129.     --- Example 7: Get modules loaded with the specified process ---
  130.     Get-Process SQL* -Module
  131.    
  132.     This command uses the Module parameter to get the modules that have been loaded by the process. This command gets the modules for the processes that have names that begin with `SQL`.

  133. To run this command on Windows Vista and later versions of Windows with processes that you do not own, you must start PowerShell with the Run as administrator option.
  134.     ------------ Example 8: Find the owner of a process ------------
  135.     Get-Process pwsh -IncludeUserName
  136.    
  137.     Handles      WS(K)   CPU(s)     Id UserName            ProcessName
  138.     -------      -----   ------     -- --------            -----------
  139.         782     132080     2.08   2188 DOMAIN01\user01     powershell
  140.    
  141.     $p = Get-WmiObject Win32_Process -Filter "name='powershell.exe'"
  142.     $p.GetOwner()
  143.    
  144.     __GENUS          : 2
  145.     __CLASS          : __PARAMETERS
  146.     __SUPERCLASS     :
  147.     __DYNASTY        : __PARAMETERS
  148.     __RELPATH        :
  149.     __PROPERTY_COUNT : 3
  150.     __DERIVATION     : {}
  151.     __SERVER         :
  152.     __NAMESPACE      :
  153.     __PATH           :
  154.     Domain           : DOMAIN01
  155.     ReturnValue      : 0
  156.     User             : user01
  157.    
  158.     The first command shows how to find the owner of a process. The IncludeUserName parameter requires elevated user rights ( Run as Administrator ). The output reveals that the owner is `Domain01\user01`.

  159. The second and third command are another way to find the owner of a process.

  160. The second command uses `Get-WmiObject` to get the PowerShell process. It saves it in the `$p` variable.

  161. The third command uses the GetOwner method to get the owner of the process in `$p`. The output reveals that the owner is `Domain01\user01`.
  162.     Example 9: Use an automatic variable to identify the process hosting the current session
  163.     Get-Process powershell
  164.    
  165.     Handles  NPM(K)    PM(K)      WS(K) VM(M)   CPU(s)     Id ProcessName
  166.     -------  ------    -----      ----- -----   ------     -- -----------
  167.     308      26        52308      61780   567     3.18   5632 powershell
  168.     377      26        62676      63384   575     3.88   5888 powershell
  169.    
  170.     Get-Process -Id $PID
  171.    
  172.     Handles  NPM(K)    PM(K)      WS(K) VM(M)   CPU(s)     Id ProcessName
  173.     -------  ------    -----      ----- -----   ------     -- -----------
  174.     396      26        56488      57236   575     3.90   5888 powershell
  175.    
  176.     These commands show how to use the `$PID` automatic variable to identify the process that is hosting the current PowerShell session. You can use this method to distinguish the host process from other PowerShell processes that you might want to stop or close.

  177. The first command gets all of the PowerShell processes in the current session.

  178. The second command gets the PowerShell process that is hosting the current session.
  179.     Example 10: Get all processes that have a main window title and display them in a table
  180.     Get-Process | Where-Object {$_.mainWindowTitle} | Format-Table Id, Name, mainWindowtitle -AutoSize
  181.    
  182.     This command gets all the processes that have a main window title, and it displays them in a table with the process ID and the process name.

  183. The mainWindowTitle property is just one of many useful properties of the Process object that `Get-Process` returns. To view all of the properties, pipe the results of a `Get-Process` command to the `Get-Member` cmdlet `Get-Process | Get-Member`.


  184. RelatedLinks
  185.     Online Version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-process?view=powershell-5.1&WT.mc_id=ps-gethelp
  186.     Debug-Process
  187.     Get-Process
  188.     Start-Process
  189.     Stop-Process
  190.     Wait-Process
复制代码


2#
发表于 3 小时前 | 只看该作者
PS C:\Users\AAA> Get-Help 'Process' -ShowWindow

Name                              Category  Module                    Synopsis                                                                                                                              
----                              --------  ------                    --------                                                                                                                              
Enter-PSHostProcess               Cmdlet    Microsoft.PowerShell.Core ...                                                                                                                                   
Exit-PSHostProcess                Cmdlet    Microsoft.PowerShell.Core ...                                                                                                                                   
Get-PSHostProcessInfo             Cmdlet    Microsoft.PowerShell.Core ...                                                                                                                                   
Debug-Process                     Cmdlet    Microsoft.PowerShell.M... ...                                                                                                                                   
Get-Process                       Cmdlet    Microsoft.PowerShell.M... ...                                                                                                                                   
Start-Process                     Cmdlet    Microsoft.PowerShell.M... ...                                                                                                                                   
Stop-Process                      Cmdlet    Microsoft.PowerShell.M... ...                                                                                                                                   
Wait-Process                      Cmdlet    Microsoft.PowerShell.M... ...                                                                                                                                   
Get-AppvVirtualProcess            Function  AppvClient                ...                                                                                                                                   
Start-AppvVirtualProcess          Function  AppvClient                ...                                                                                                                                   
Invoke-LapsPolicyProcessing       Cmdlet    LAPS                      Invoke-LapsPolicyProcessing...                                                                                                        
ConvertTo-ProcessMitigationPolicy Cmdlet    ProcessMitigations        ConvertTo-ProcessMitigationPolicy...                                                                                                  
Get-ProcessMitigation             Cmdlet    ProcessMitigations        Get-ProcessMitigation...                                                                                                              
Set-ProcessMitigation             Cmdlet    ProcessMitigations        Set-ProcessMitigation...            

按你的命令输入后,结果输入法不能输入字符了。上网找了一下,输入ctfmon才恢复。
看上去是英文。
回复

使用道具 举报

3#
发表于 3 小时前 | 只看该作者
是中文的

点评

哪个版本的系统? 不是精简版吧  详情 回复 发表于 3 小时前
回复

使用道具 举报

4#
 楼主| 发表于 3 小时前 | 只看该作者

哪个版本的系统? 不是精简版吧

点评

是极限精简版的win11,不太记得是谁的了,好像是wuliyen  详情 回复 发表于 3 小时前
回复

使用道具 举报

5#
发表于 3 小时前 | 只看该作者
2013kyj 发表于 2024-9-20 07:27
哪个版本的系统? 不是精简版吧

是极限精简版的win11,不太记得是谁的了,好像是wuliyen

点评

大佬, 刚试安装了一下, powershell ise无法打开, 有ise的启动界面, 但是一闪就关了, 哪个版本支持 powershell ise?  详情 回复 发表于 1 小时前
是这个吗? http://wuyou.net/forum.php?mod=viewthread&tid=438179&extra=&page=1  详情 回复 发表于 2 小时前
回复

使用道具 举报

6#
 楼主| 发表于 2 小时前 | 只看该作者
2012fengxi 发表于 2024-9-20 07:33
是极限精简版的win11,不太记得是谁的了,好像是wuliyen

是这个吗?
http://wuyou.net/forum.php?mod=v ... p;extra=&page=1
回复

使用道具 举报

7#
发表于 2 小时前 | 只看该作者
跟你的一样, 不忘初心的win11
回复

使用道具 举报

8#
发表于 2 小时前 | 只看该作者
我的也是中文的,用的是初心版主的win11
回复

使用道具 举报

9#
发表于 1 小时前 | 只看该作者
跟员审核版本有关吧。有话就不一定了
回复

使用道具 举报

10#
 楼主| 发表于 1 小时前 | 只看该作者
2012fengxi 发表于 2024-9-20 07:33
是极限精简版的win11,不太记得是谁的了,好像是wuliyen

大佬, 刚试安装了一下, powershell ise无法打开, 有ise的启动界面, 但是一闪就关了, 哪个版本支持 powershell ise?
回复

使用道具 举报

11#
发表于 1 小时前 | 只看该作者
学习
回复

使用道具 举报

12#
发表于 1 小时前 | 只看该作者
学习了
回复

使用道具 举报

13#
发表于 1 小时前 | 只看该作者
太干净的系统也不是什么好事,什么都安装,对于我这种懒人,我还是喜欢什么安装的。不需要的东西删除
回复

使用道具 举报

14#
发表于 半小时前 | 只看该作者
摘要
    Gets the processes that are running on the local computer or a remote computer.

说明
    The `Get-Process` cmdlet gets the processes on a local or remote computer.
   
    Without parameters, this cmdlet gets all of the processes on the local computer. You can also specify a particular process by process name or process ID (PID) or pass a process object through the pipeline to this cmdlet.
   
    By default, this cmdlet returns a process object that has detailed information about the process and supports methods that let you start and stop the process. You can also use the parameters of the `Get-Process` cmdlet to get file version information for the program that runs in the process and to get the modules that the process loaded.


参数
    -ComputerName <System.String[]>
        Specifies the computers for which this cmdlet gets active processes. The default is the local computer.
        

        必需?        false
        位置?        named
        默认值        Local computer
        是否接受管道输入?  True (ByPropertyName)
        是否接受通配符?   false

点评

你这不是原版吧, 这是英文的帮助  详情 回复 发表于 半小时前
回复

使用道具 举报

15#
 楼主| 发表于 半小时前 | 只看该作者
zlq_hysy 发表于 2024-9-20 10:04
摘要
    Gets the processes that are running on the local computer or a remote computer.

你这不是原版吧, 这是英文的帮助

点评

小修的精简版  详情 回复 发表于 24 分钟前
回复

使用道具 举报

16#
发表于 24 分钟前 | 只看该作者
2013kyj 发表于 2024-9-20 10:07
你这不是原版吧, 这是英文的帮助

小修的精简版
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-9-20 10:39

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表