Powershell 获取帮助显示不同系统上的不同输出

Powershell 获取帮助显示不同系统上的不同输出,powershell,Powershell,使用以下cmdlet时: Get-Help Get-ADUser -Parameter identity 在安装了RSAT并连接到Windows Server 2012 R2的Windows 7上,我得到以下输出: -Identity <ADUser> Specifies an Active Directory user object by providing one of the following property values. The identifier in paren

使用以下cmdlet时:

Get-Help Get-ADUser -Parameter identity
在安装了RSAT并连接到Windows Server 2012 R2的Windows 7上,我得到以下输出:

-Identity <ADUser>
Specifies an Active Directory user object by providing one of the following property values. The identifier in
parentheses is the LDAP display name for the attribute.

  Distinguished Name
    Example:  CN=SaraDavis,CN=Europe,CN=Users,DC=corp,DC=contoso,DC=com
  GUID (objectGUID)
    Example: 599c3d2e-f72d-4d20-8a88-030d99495f20
  Security Identifier (objectSid)
    Example: S-1-5-21-3165297888-301567370-576410423-1103
  SAM account name  (sAMAccountName)
    Example: saradavis

The cmdlet searches the default naming context or partition to find the object. If two or more objects are found
the cmdlet returns a non-terminating error.

This parameter can also get this object through the pipeline or you can set this parameter to an object instance

This example shows how to set the parameter to a distinguished name.
  -Identity  "CN=SaraDavis,CN=Europe,CN=Users,DC=corp,DC=contoso,DC=com"

This example shows how to set this parameter to a user object instance named "userInstance".
  -Identity   $userInstance

Required?                    true
Position?                    1
Default value
Accept pipeline input?       true (ByValue)
Accept wildcard characters?  false
-标识
通过提供以下属性值之一指定Active Directory用户对象。中的标识符
括号是属性的LDAP显示名称。
名
示例:CN=SaraDavis,CN=Europe,CN=Users,DC=corp,DC=contoso,DC=com
GUID(对象GUID)
示例:599c3d2e-f72d-4d20-8a88-030d99495f20
安全标识符(objectSid)
示例:S-1-5-21-3165297888-301567370-576410423-1103
SAM帐户名(sAMAccountName)
示例:萨拉戴维斯
cmdlet搜索默认命名上下文或分区以查找对象。如果发现两个或多个对象
cmdlet返回一个非终止错误。
此参数还可以通过管道获取此对象,也可以将此参数设置为对象实例
此示例演示如何将参数设置为可分辨名称。
-标识“CN=SaraDavis,CN=Europe,CN=Users,DC=corp,DC=contoso,DC=com”
此示例演示如何将此参数设置为名为“userInstance”的用户对象实例。
-标识$userInstance
必修的?真的
位置?1.
默认值
接受管道输入?真(按值)
是否接受通配符?假的
但是,当我在安装了WMF 5.1的Windows Server 2012 R2或2016上使用它时,我只得到以下信息:

-Identity <ADUser>
Required?                    true
Position?                    1
Default value
Accept pipeline input?       true (ByValue)
Accept wildcard characters?  false
-标识
必修的?真的
位置?1.
默认值
接受管道输入?真(按值)
是否接受通配符?假的

知道我做错了什么吗?

Get-ADUser命令来自一个“系统模块”,即使使用相同版本的WMF,即使“Get-command Get-ADUser”显示的版本号相同(1.0.0.0),该模块也可能与其他操作系统不同。。。因此,帮助内容也可能不同

顺便说一句,我在使用WMF 5.1的Windows 2012 R2上得到了这个结果

-Identity <ADUser>
    Specifies an Active Directory user object by providing one of the following property values. The identifier in
    parentheses is the LDAP display name for the attribute. The acceptable values for this parameter are:

    -- A Distinguished Name
    -- A GUID (objectGUID)
    -- A Security Identifier (objectSid)
    -- A SAM Account Name (sAMAccountName)

    The cmdlet searches the default naming context or partition to find the object. If two or more objects are found,
    the cmdlet returns a non-terminating error.

    This parameter can also get this object through the pipeline or you can set this parameter to an object instance.

    Required?                    true
    Position?                    1
    Default value
    Accept pipeline input?       True (ByValue)
    Accept wildcard characters?  false
-标识
通过提供以下属性值之一指定Active Directory用户对象。中的标识符
括号是属性的LDAP显示名称。此参数的可接受值为:
--显赫的名字
--GUID(对象GUID)
--安全标识符(objectSid)
--SAM帐户名(sAMAccountName)
cmdlet搜索默认命名上下文或分区以查找对象。如果发现两个或多个对象,
cmdlet返回一个非终止错误。
此参数还可以通过管道获取此对象,也可以将此参数设置为对象实例。
必修的?真的
位置?1.
默认值
接受管道输入?真(按值)
是否接受通配符?假的

您可以尝试更新“帮助”下载最新的PowerShell帮助文件(如果您的服务器已连接到Internet…。

我只是猜测一下。。。请尝试参数-fullThank,尝试过,抛出无效参数错误,也尝试过-detailed。谢谢你的努力。非常感谢。您可能需要管理员在服务器上运行
更新帮助