script to check an icann domain registry for available .com

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 3 years, 6 months ago.

  • Author
    Posts
  • #10655
    Profile photo of Chad Phillips
    Chad Phillips
    Participant

    I have very basic PS knowledge, but what I'd like to do is take a csv file that has two columns: Color and DomainName, and run a search against a domain register somewhere and pull info whether the .com is available or not. Thanks!

    -Chad

  • #10658
    Profile photo of Don Jones
    Don Jones
    Keymaster

    You can use Import-CSV to import the CSV file as a collection of objects, having Color and DomainName properties. From there, it's up to you to figure out how to do the query. I imagine Invoke-WebRequest could be of some help, but it depends entirely on what you're actually sending the query to.

You must be logged in to reply to this topic.