Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

import module failed "no assembly with that name was found"

$
0
0

I wanted to create and use a managed service account.

In domain controller, I use New-ADServiceAccount to create a MSA (it created a gMSA in Server 2012)

then use Add-AdComputerServiceAccount to tie a computer account(VMM) with this AD service account (not sure if this step is needed for gMSA)

The problem now is, then I go to another server (VMM) to run install-ADServiceAccount

To run this, I need to install the ActiveDirectory module since VMM is not a domain controller.

I copied the Active Directory module folder from my Domain Controller and put it into one of the $env:PSmodulePath

so when i run get-module -list (or -listavailable), I can see ActiveDirectory

But then when I try to run Import-Module Active Directory, I get the following error message.

"was not loaded because no assembly with that name was found."

Question 1, do we need to run install-ADServiceAccount for gMSA? (MSA, we need to do so)

Question 2, are we not able to use ActiveDirectory module in non Domain controller machine?

*VMM might not work with gMSA, but this is not the question :)

All servers are Windows Server 2012 R2 Preview

Powershell v3



Viewing all articles
Browse latest Browse all 21975

Trending Articles