powershell module

Shahin Mortazave 486 Reputation points
2021-03-29T17:19:07.577+00:00

Hi,
We have a 2 nodes server 2016 hyper-v cluster that uses a shated storage.
We have an issue with one of the VMs and we have have to run some powershell commands, but commands returen an error and MS support suggest to run
this cmdlet

Remove-Module Hyper-V
and
Import-Module -Name Hyper-V -RequiredVersion 1.1

I did check and there are no scripts on both nodes that use the current hyper-v module.

This cluster is in a production environment and would like to know removing the current powershell module will not cause any problem at cluster level.
any suggestion on removing the module?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,556 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Xiaowei He 9,871 Reputation points
    2021-03-30T06:20:54.417+00:00

    Hi,

    Remove the Powershell module will not affect the cluster function. The Powershell module just management tools.

    Thanks for your time!
    Best Regards,
    Anne

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Shahin Mortazave 486 Reputation points
    2021-04-01T10:34:44.893+00:00

    Hi @Xiaowei He Thank you for your reply and sorry for late response from me..
    Just one more question,

    Before remove the Module I did check the installed module and saw this:

    83568-image.png

    but when tried to Remove-Module Hyper-V on the same cluster node get this error! why the remove cmdlet failed?

    83619-image.png

    0 comments No comments

  3. Xiaowei He 9,871 Reputation points
    2021-04-06T09:00:20.507+00:00

    Hi,

    "Get-Module -Name Hyper-V -ListAvailable" means the module you could install, this means you haven't installed the modules.

    So, according to your screenshot, you didn't import the Hyper V module, so when you remove it you get the error message.

    Thanks for your time!
    Best Regards,
    Anne

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments