vsamantha35
SSChampion
Points: 11551
More actions
February 7, 2017 at 11:06 am
#321519
Hi All,
Is there a way/powershell command to get the CNames created for a Server in Active Directory for SQL Server Instance(s) ?
Thanks,
Sam
goher2000
SSCertifiable
Points: 5479
February 7, 2017 at 1:52 pm
#1927200
I am sure there is however you can also use linked server to query the AD , Google ADSI you will find lots of references , here is example https://community.spiceworks.com/how_to/27494-create-a-sql-linked-server-to-adsi
Sue_H
SSC Guru
Points: 90860
February 7, 2017 at 2:05 pm
#1927203
vsamantha35 - Tuesday, February 7, 2017 11:06 AMHi All, Is there a way/powershell command to get the CNames created for a Server in Active Directory for SQL Server Instance(s) ?Thanks,Sam
You can probably get it using Get-DnsServerResourceRecord. The examples in this link can probably help: Querying DNS RecordData properties in PowerShell
Sue
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply