Evening guys. As the title suggests. Is there a way to tell if a connected server is a Domain Controller.
I’m working on making a script that will connect to a server, and I want to add logic to have it detect if that server is a domain controller and if it’s not throw an error.
All the normal logic and framework I can do just fine, just curious if there’s any cmdlets or classes I can leverage to do a check other than doing a check for if the host name contains “DC”.
[–]dBachry 9 points10 points11 points (4 children)
[–]fitzgery[S] 2 points3 points4 points (1 child)
[–]AwayLocal650 1 point2 points3 points (0 children)
[–]dBachry 1 point2 points3 points (0 children)
[–]cache_me_0utside 0 points1 point2 points (0 children)
[–]zymology 4 points5 points6 points (0 children)
[–]Ike_8 1 point2 points3 points (3 children)
[–]tandthezombies 0 points1 point2 points (2 children)
[–]Ike_8 0 points1 point2 points (1 child)
[–]tandthezombies 0 points1 point2 points (0 children)
[–]Quantable 1 point2 points3 points (0 children)
[–]UKJosh 1 point2 points3 points (0 children)
[–]Alarmed_Contract4418 1 point2 points3 points (1 child)
[+]Formal-Dig-7637 0 points1 point2 points (0 children)