代码之家  ›  专栏  ›  技术社区  ›  Dinesh Pundkar

“Get WindowsFeature-Name Hyper-V”在20%时受阻

  •  0
  • Dinesh Pundkar  · 技术社区  · 8 年前

    我已执行以下命令:

    Get-WindowsFeature -Name Hyper-V | Select-Object InstallState 
    

    它在20%的时候被卡住了

    enter image description here

    有什么具体的原因吗?我该怎么处理?

    操作系统:W2K12R2

    Powershell版本:

    enter image description here

    1 回复  |  直到 8 年前
        1
  •  0
  •   postanote    8 年前

    这很奇怪,而且是我从未发生过的事情,但可能表明你正在处理的计算机有问题。你也不会说你在什么操作系统版本上看到这个,也就是说,WS2008-2019。

    无论如何,试着用几种不同的方法看看结果是什么。

    Get-WindowsFeature -Name '*hyper-v' | Select-Object -Property *
    Name                      : Hyper-V
    DisplayName               : Hyper-V
    Description               : Hyper-V provides ... 
                                virtualized ...
                                simultaneously.
    Installed                 : False
    InstallState              : Available
    FeatureType               : Role
    Path                      : Hyper-V
    Depth                     : 1
    DependsOn                 : {}
    Parent                    : 
    ServerComponentDescriptor : ServerComponent_HyperV
    SubFeatures               : {}
    SystemService             : {vmms}
    Notification              : {}
    BestPracticesModelId      : Microsoft/Windows/Hyper-V
    EventQuery                : Virtualization.Events.xml
    PostConfigurationNeeded   : False
    AdditionalInfo            : {MajorVersion, Mino...
    
    
    (Get-WindowsFeature -Name '*hyper-v').Installed
    False
    
    (Get-WindowsFeature -Name '*hyper-v').InstallState
    Available
    
    Get-WindowsFeature -Name Hyper-V | Select-Object InstallState
                                                                  InstallState
                                                                  ------------
                                                                  Available
    
    Get-WindowsFeature -Name Hyper-V | Select-Object InstallState | ft -HideTableHeaders
                                                                  Available
    
    Get-WindowsFeature -Name Hyper-V | Select-Object InstallState | ft -HideTableHeaders | Out-String
                                                                  Available
    

    推荐文章