Quantcast
Channel: How to check if a computer have already joined a domain with Samba - Server Fault
Viewing all articles
Browse latest Browse all 3

Answer by phg for How to check if a computer have already joined a domain with Samba

$
0
0

Use net ads testjoin:

# net ads testjoin -kJoin is OK

→ This box is joined. Now remove it from the domain and testjoin returns -1:

 # net ads leave -kDeleted account for 'DEADBEEF' in realm 'EXAMPLE.COM'# net ads testjoin -kJoin to domain is not valid: NT code 0xfffffff6# echo $?255

Viewing all articles
Browse latest Browse all 3

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>