how to install dhcp powershell module only in server 2012 R2

Ravi Tandon 0 Reputation points
2023-01-17T15:47:21.05+00:00

how to install /reinstall powershell DHCP module only on dhcp server 2012 R2 server

i am getting error

Import-Module : The module to process 'PS_DhcpServerV6OptionValue_v1.0.0.cdxml', listed in field

'NestedModules' of module manifest

'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\DhcpServer\DhcpServer.psd1' was not processed because no

valid module was found in any module directory.

At line:2 char:1

+ Import-Module 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\DhcpServer\Dhc ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ResourceUnavailable: (DhcpServer:String) [Import-Module], PSInvalidOperationEx

   ception

    + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Comman

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hoekstra Jelle 501 Reputation points
    2023-01-17T16:15:09.3733333+00:00

    I will attach a link to my gitrepo it is a copy of a freshly installed DHCP module. (new DHCP server)

    Please backup your files (the DHCP module) and see if it this works.

    Git: https://github.com/jellebee/guides/tree/main/Other/Powershell_Modules

    Module: C:\Windows\System32\WindowsPowerShell\v1.0\Modules

    Hope this helps!

    If it does, please accept the answer and upvote

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.