Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Get-DomainPolicyData is not recognized when importing PowerSploit.psm1 module #363

Description

@phackt

Hello, please check the following commands:

PS C:\Users\Administrator\Documents\Invoke-Recon> Import-Module .\modules\PowerSploit\PowerSploit.psm1
PS C:\Users\Administrator\Documents\Invoke-Recon> Get-Command Get-DomainPolicy

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           Get-DomainPolicy                                   0.0        PowerSploit


PS C:\Users\Administrator\Documents\Invoke-Recon> Get-DomainPolicy
Get-DomainPolicy : The term 'Get-DomainPolicyData' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1
+ Get-DomainPolicy
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-DomainPolicyData:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\Administrator\Documents\Invoke-Recon> Import-Module .\modules\PowerSploit\Recon\PowerView.ps1
PS C:\Users\Administrator\Documents\Invoke-Recon> Get-DomainPolicy


Unicode        : @{Unicode=yes}
SystemAccess   : @{MinimumPasswordAge=1; MaximumPasswordAge=42; MinimumPasswordLength=7; PasswordComplexity=1; PasswordHistorySize=24; LockoutBadCount=0; RequireLogonToChangePassword=0; ForceLogoffWhenHourExpire=0; ClearTextPassword=0;
                 LSAAnonymousNameLookup=0}
KerberosPolicy : @{MaxTicketAge=10; MaxRenewAge=7; MaxServiceAge=600; MaxClockSkew=5; TicketValidateClient=1}
RegistryValues : @{MACHINE\System\CurrentControlSet\Control\Lsa\NoLMHash=System.Object[]}
Version        : @{signature="$CHICAGO$"; Revision=1}
Path           : \\phackt.local\sysvol\phackt.local\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf
GPOName        : {31B2F340-016D-11D2-945F-00C04FB984F9}
GPODisplayName : Default Domain Policy

Someone has ever faced this issue ?

Thanks a lot,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions