16

PowerView-3.0 tips and tricks

 1 year ago
source link: https://gist.github.com/HarmJ0y/184f9822b195c52dd50c379ed3117993
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

PowerView-3.0 tips and tricks · GitHub

Instantly share code, notes, and snippets.

PowerView-3.0 tips and tricks

| Get-DomainGroupMember -Recurse | ?{.MemberName−like′∗'}

does not seem to work.

Get-DomainSearcher : A parameter cannot be found that matches parameter name 'Identity'.
At C:\PSScripts\PowerView.ps1:11098 char:45

  •     $GroupSearcher = Get-DomainSearcher @SearcherArguments
    
  •                                         ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Get-DomainSearcher], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Get-DomainSearcher

hello, thanks for the wonderful stuff you have here. However, I am following a tutorial and this script was mentioned. When I try to use it I get the error "the operator '<' is reserved for future use. The expectation was not to provide a value to replace this when running it. What am I doing wrong? I would appreciate any help. thanks.

@GeneralXpress This file is not meant to be run as a script. It's rather a cheatsheet with a list of commands you can run after sourcing PowerShell.ps1.

You would substitute <User/Group> with a user or group you are interested in for example

enumerate the current domain policy

$DomainPolicy = Get-DomainPolicy -Policy Domain - This was not working.

I believe below is the correct one.
$DomainPolicy = Get-DomainPolicy -Domain DomainName
$DomainPolicy.KerberosPolicy # useful for golden tickets ;)
$DomainPolicy.SystemAccess # password age/etc.

s4credd commented on Apr 3

| Get-DomainGroupMember -Recurse | ?{.MemberName−like′∗'}

does not seem to work.

Get-DomainSearcher : A parameter cannot be found that matches parameter name 'Identity'. At C:\PSScripts\PowerView.ps1:11098 char:45

  •     $GroupSearcher = Get-DomainSearcher @SearcherArguments
    
  •                                         ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Get-DomainSearcher], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Get-DomainSearcher
      10ff9924132c8b47d896bb06ae54cc6f

s4credd commented on Apr 3

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK