GetCurrentDomain with 0 argument(s): Current security context is not associated with an Active Directory domain or forest

FluffyBear 0 Reputation points
2023-08-27T12:43:47.2733333+00:00

Hello,

So I was trying to emulate this attack (specifically the carbanak attack) using Virtual Machines in VirtualBox, along with a Kali VM (I've tried my Windows Machine to be a combination of all the target VMs).

However, when I get to Step 4.A 4 in the carbanak attack, which is meterpreter > powershell_execute Get-NetComputer, I get the following error GetCurrentDomain with 0 argument(s): Current security context is not associated with an Active Directory domain or forest.

I wanted to know why would this happen and how would I be able to fix this? If it helps, both the VMs were using Host Only network (so no internet) with a static IP Addresses, however, ofcourse, I can connect to internet using the VM.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,956 questions
0 comments No comments
{count} votes

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.