Skip to content

Files

Latest commit

 

History

History
46 lines (37 loc) · 832 Bytes

vars-active_directory.md

File metadata and controls

46 lines (37 loc) · 832 Bytes

Active Directory

ACTIVE DIRECTORY DOMAIN
dsconfigad -show | awk '/A*Dir.*D/{print $NF}'
ACTIVE DIRECTORY FOREST
dsconfigad -show | awk '/A*Dir.*F/{print $NF}'
COMPUTER ACCOUNT
dsconfigad -show | awk '/Com.*Acc/{print substr($NF,1,length($NF)-1)}'
ALLOWED ADMIN GROUPS
dsconfigad -show | awk -F'= ' '/ad.*groups/{print $NF}'
NETWORK PROTOCOL
dsconfigad -show | awk '/protocol/{print $NF}'
USING MOBILE ACCOUNTS
dsconfigad -show | awk '/mobile/{print $NF}'
USING LOCAL HOMES
dsconfigad -show | awk '/startup/{print $NF}'
PACKET SIGNING
dsconfigad -show | awk -F'= ' '/Pa.*sig/{print $NF}'
PACKET ENCRYPTION
dsconfigad -show | awk -F'= ' '/Pa.*enc/{print $NF}'