Windows 10: IP Geolocation via Command Prompt\Powershell

Discus and support IP Geolocation via Command Prompt\Powershell in Windows 10 Network and Sharing to solve the problem; Hello, I'm looking for a way to check PC's IP Geolocation by using command prompt or powershell (no scripts). I hope there are some experts here... Discussion in 'Windows 10 Network and Sharing' started by JustDev, Sep 1, 2016.

  1. JustDev Win User

    IP Geolocation via Command Prompt\Powershell


    Hello,

    I'm looking for a way to check PC's IP Geolocation by using command prompt or powershell (no scripts).
    I hope there are some experts here who can help me out. I have found a very easy to do it on UNIX systems but my main machines will be Windows 7/8.1/10 based.

    Basically I need something equivalent to this: (This is via Terminal on MacOS)
    curl ipinfo.io
    {
    "ip": "793.452.666.321",
    "hostname": "athedsl-413388.home.otenet.gr",
    "city": "Athens",
    "region": "Attica",
    "country": "GR",
    "org": "AS6799 Ote SA (Hellenic Telecommunications Organisation)"


    Any suggestions? *sarc

    :)
     
    JustDev, Sep 1, 2016
    #1

  2. IP Geolocation via Command Prompt

    Hello,

    I suggest you to post the same query in Microsoft TechNet forum for further assistance with this issue.

    Kindly post your query in the link below:

    Technet forums - Windows 10 IT Pro

    Please get back to us for further assistance. We will be happy to help.
     
    Anju Thekkethil, Sep 1, 2016
    #2
  3. IP Geolocation via Command Prompt

    Hello,

    First of all, please I beg you, no canned answers from Microsoft. Please.

    Now to my question - I am look for a way to check IP address geolocation using nothing by internal tools of the operating system.

    Any experts who can help me out?

    The reason behind it is that I cannot use websites like "findmyipaddress" and such on client's computers.

    Cheers.
     
    Urso_Polar, Sep 1, 2016
    #3
  4. Tanuki360 Win User

    IP Geolocation via Command Prompt\Powershell

    PowerShell is not as different as you might think. That command "curl ipinfo.io" works right out of the box in PowerShell thanks to an alias command that maps to curl. PowerShell has several aliases for native commands to help make learning PowerShell easier for beginners. Curl is an alias for the PowerShell command Invoke-WebRequest. You can also use "iwr" as an alias. Now that PowerShell is available on Linux, though I would expect that the "curl" alias will be removed at some point so it is better to use the native syntax.

    If you want it to match the output of your example, you need to expand the content property of the returned object...

    curl ipinfo.io | select -ExpandProperty content

    This will return the exact same result as your example.
     
    Tanuki360, Sep 1, 2016
    #4
  5. JustDev Win User
    Tanuki, you have no idea how happy I am to finally get an answer, thank you so so so so much!!!!!!!!!*Smile*Smile*Smile*Smile*Smile*Smile
     
    JustDev, Apr 5, 2018
    #5
Thema:

IP Geolocation via Command Prompt\Powershell

Loading...
  1. IP Geolocation via Command Prompt\Powershell - Similar Threads - Geolocation via Command

  2. Inaccurate Geolocation services

    in Windows 10 Software and Apps
    Inaccurate Geolocation services: Hello, the GPS location shared by my computer is inaccurate, it hundreds of miles off from where I am. It has gone from bouncing between the inaccurate location, and my real one to consistently only displaying the inaccurate location. The problem has persisted after a...
  3. Are Windows 10 & 11 blocking my IP geolocation?

    in Windows 10 Gaming
    Are Windows 10 & 11 blocking my IP geolocation?: I have several Windows weather apps including Radarscope and Strawberry Weather. Problem: About two months ago both of these Windows apps started reporting my geolocation IP address as being 50 miles south of my actual location. Meanwhile, these same apps on my iOS devices...
  4. Are Windows 10 & 11 blocking my IP geolocation?

    in Windows 10 Software and Apps
    Are Windows 10 & 11 blocking my IP geolocation?: I have several Windows weather apps including Radarscope and Strawberry Weather. Problem: About two months ago both of these Windows apps started reporting my geolocation IP address as being 50 miles south of my actual location. Meanwhile, these same apps on my iOS devices...
  5. Geolocation plugins

    in Windows 10 Customization
    Geolocation plugins: I have downloaded Player Locator plugins for online casinos and they download and I install and they say they are installed, but when I go online to the sites they won't allow me to play because they say they can't locate what state I'm in. This has been only since I reset...
  6. Geolocation plugins

    in Windows 10 Customization
    Geolocation plugins: I have installed multiple for online casinos but they still won't allow me to play. How can I enable them to work correctly? https://answers.microsoft.com/en-us/windows/forum/all/geolocation-plugins/f9366408-41fa-4c36-9180-b2296a977398
  7. Geolocation issue

    in Windows 10 Customization
    Geolocation issue: I have purchased a new computer and noticed that it does not find my exact geolocation. For instance, in the Weather app, it shows a city but not an exact place where I am. I need your help. Thank you...
  8. Geolocation Issues

    in Windows 10 Ask Insider
    Geolocation Issues: I moved from Pennsylvania to New York 2 months ago. Geolocation is incorrect in Weather app, Maps app, Firefox desktop on Windows 10, it gives off my OLD address. Random sites that ask for location that is. Clean Windows 10 Install Clean Firefox Install Not behind VPN...
  9. geolocation services

    in Windows 10 Customization
    geolocation services: Why would I want to have geolocation services running on my pc? I turn it off and it turns itself back on again.??? https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/geolocation-services/288a9dc4-d792-425e-b0ce-6a406b057227
  10. Run a scheduled task via command line via command line

    in Windows 10 Support
    Run a scheduled task via command line via command line: i want start a Run a scheduled task via command line like this: Code: %SystemRoot%\system32\taskschd.msc /Run /TN "RegIdleBackup" when i run the cmd in the prompt as admin the shedular task GUI pop up but the task not start. Is there a solution? Is the...