How to fix "Invoke-IpamGpoProvisioning : Exception calling GetCurrentDomain with 0 argument(s): Current security context is not associated with an Active Directory domain or forest" in Windows server 2019

Ajibola, Olusegun Joseph 5 Reputation points

I am implementing IPAM server for school project.

I have it installed on a VM and needed to provision it:

I run this command:

Invoke-IpamGpoProvisioning -Domain <DomainName> -IpamServerFqdn <ServerFQDN> -GpoPrefixName <GPOName> -DelegatedGpoUser Administrator

After running the above command, it generated the error message.

I will be grateful if someone can point my attention to what I am getting wrong.


Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,276 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. kerian 0 Reputation points

    Usually when you have above error, i want to believe you are logged in to the IPAM server with a Local user,

    you need to log in to the server machine or Ipam server using a Domain User( that exist in the DC you are trying to access).

    although you can make the Local user to be a domain user which ever works for you.

    once logged in using a Domain user, try this cmdlet again and it will work just fine.

    0 comments No comments