Alans Wiki

IT tips and tricks

add DNS a records with reverse PRT with powershell

Posted by alambert on November 8, 2019
Posted in: DNS, DNS, Powershell, Windows. Tagged: DNS, powershell.
$DNSEntrys = import-csv “h:\dns.csv”
ForEach ($dns in $DNSEntrys){
$hostname = $($dns.hostname)
$ipaddress = $($dns.ipaddress)
Write-host $hostname $ipaddress
Add-DnsServerResourceRecordA -Name $hostname -IPv4Address $ipaddress -ZoneName contoso.com -ComputerName dc01 -CreatePtr
}

Posts navigation

← Export DHCP Config
Set Ad Users password never expires from list or CSV →
  • Recent Posts

    • Change the RDS “Work Resources”
    • Create SG for folders
    • Enable inheritance on all AD user
    • MSGraph Powershell module
    • http://www.thelamberts.com/wiki/tramadol-dosage-dogs/
  • Categories

    • xanax detox symptoms
    • how to get an adipex prescription online
    • Azure
    • Azure Active Directory
    • Backup Exec
    • Command Line
    • Data Center
    • DHCP
    • DNS
    • DNS
    • Exchange
    • Hyperv
    • Networking
    • Offfice 365
    • OneNote
    • Patching
    • PowerCLI
    • Powershell
    • RemoteApps
    • Shortcuts
    • Single
    • Splunk
    • Uncategorized
    • Veeam
    • VMware
    • Windows
    • Workstation
  • Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
Proudly powered by WordPress Theme: Parament by Automattic.