parent
3332f4aa98
commit
2523f84f0f
|
@ -93,7 +93,7 @@ function Invoke-SMBAutoBrute
|
|||
|
||||
function Get-PDCe()
|
||||
{
|
||||
$context = new-object System.DirectoryServices.ActiveDirectory.DirectoryContext("Domain","lab.com")
|
||||
$context = new-object System.DirectoryServices.ActiveDirectory.DirectoryContext("Domain",$env:UserDNSDomain)
|
||||
$domain = [System.DirectoryServices.ActiveDirectory.Domain]::GetDomain($context)
|
||||
return $domain.pdcRoleOwner
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue