PowerShellMafia / PowerSploit

PowerSploit - A PowerShell Post-Exploitation Framework
Other
11.68k stars 4.59k forks source link

Update PowerView.ps1 #340

Open kevinalbarton opened 4 years ago

kevinalbarton commented 4 years ago

GetCurrentUserDomain encounter with: Exception calling "GetCurrentUserDomain" with "0" argument(s): "Current security context is not associated with an Active Directory domain or forest." At line:1 char:1

In updated windows and .Net framework now but when changing to GetcomputerDomain while we have logged in with a domain user the problem will be resolved.