Solved

Adding a DNS SRV Record to DNS residing on Windows Server Core 2012 (No GUI)

Posted on 2013-12-22
8
1,783 Views
Last Modified: 2013-12-27
Heyas,

I need to add a DNS SRV records to a Windows 2012 Server Core Machine (No GUI) when I log into this machine only the command line appears. How do I add the DNS record via the command line.

Please bear in mind I am a complete novice with Windows Server 2012.

Any help would be much appreciated.

Thank you.
0
Comment
Question by:Zack
  • 4
  • 3
8 Comments
 
LVL 7

Expert Comment

by:dsnegi_25dec
ID: 39735312
0
 

Author Comment

by:Zack
ID: 39735314
Heya Dsnegi_25dec,

Thanks for the info but how do I launch Powershell if all I have is the command line box appearing on the Server Core machine.
0
 

Author Comment

by:Zack
ID: 39735328
Ok I have managed to launch Windows Powershell with the command "start powershell". Is there a powershell command I can use to find the name of the "Server Core" machine I am operating on?
0
 
LVL 7

Expert Comment

by:dsnegi_25dec
ID: 39735407
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:Zack
ID: 39735412
Hi DsNegi_25dec,

The next issue is that the New-DNSrecord command doesn't work this is the error message I get, bare in mind I have set-executionpolicy to allsigned in powershell.

new-dnsrecord : The term 'new-dnsrecord' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ new-dnsrecord
+ ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (new-dnsrecord:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Thank you.
0
 
LVL 7

Accepted Solution

by:
dsnegi_25dec earned 250 total points
ID: 39735440
Can you try below

http://stackoverflow.com/questions/7425281/make-dns-record-entries-using-wmi-from-powershell



http://keithlangmead.blogspot.in/2013/06/powershell-v3-and-new-features.html


Add-DnsServerResourceRecord -DomainName mail.domain.com -Name _autodiscover._tcp -Port 443 -Priority 0 -Srv -Weight 0 -ZoneName foo.com -WhatIf
0
 
LVL 35

Assisted Solution

by:Mahesh
Mahesh earned 250 total points
ID: 39735502
Do you have administrative rights on 2012 Core machine ?

You can download RSAT tools for windows 2012 server which can be run through Win 8 Machine and from there you can add dns tools and add 2012 core server there to manage it from GUI
http://www.microsoft.com/en-us/download/details.aspx?id=28972
http://blogs.technet.com/b/blainbar/archive/2013/07/23/manage-your-windows-2012-server-with-remote-server-administration-tools-rsat-from-windows-8-read-on.aspx

Mahesh
0
 

Author Closing Comment

by:Zack
ID: 39741388
Cheers for help guys.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Know what services you can and cannot, should and should not combine on your server.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now