AD living off the land Flashcards

1
Q

Powershell, list all available modules

A

get-module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Powershell, gather domain info

A

get-addomain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Powershell, list users on a domain with SPN non null

A

get-aduser -filter {ServicePrincipalName -ne “$null”} -properties ServicePrincipalName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Powershell, list trust relationships in domain and filter by any property

A

get-adtrust -filter *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Powershell, list groups in a domain and filter by name

A

get-adgroup -filter * | select name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Powershell, search for a specific group

A

get-adgroup -identity “name of group”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CMD, info about password reqs

A

net accounts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

CMD, passw policy and lockout

A

net accounts /domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

CMD, info on domain groups

A

net group /domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CMD, list users with domain admin privs

A

net group “Domain Admins” /domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

CMD, list PCs connected to domain

A

net group “domain computers” /domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

CMD, list PCs accounts of DC

A

net group “Domain Controllers” /domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CMD, list users of a group

A

net group group_name /domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

CMD, list domain groups

A

net groups /domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

CMD, list all available groups

A

net localgroup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

CMD, list all users belonging to administrastors group

A

net localgroup administrators /domain

17
Q

CMD, info on a group

A

net localgroup group_name

18
Q

CMD, check curresnt share

19
Q

CMD, info o a user in the domain

A

net user account_name /domainl

20
Q

CMD, list all users

A

net user /domain

21
Q

CMD, info on a user

A

net user user_name

22
Q

CMD, list all computers

23
Q

CMD, list all shares on the domain

A

net view /all/domain[:domainname]

24
Q

CMD, list of all shares of a compuer

A

net view \computer /ALL