Are you tired of manually running network diagnostics like Ping, Traceroute, or DNS queries? The Globalping PowerShell Module is here to save the day! With its easy-to-use cmdlets, you can automate measurements from probes distributed across the globe.
In this blog, we'll explore the features of the Globalping PowerShell Module, showcase real-world examples, and help you get started with scripting your network tests. If you're a developer working in C#, check out our companion blog on Globalping.NET to see how these tools complement each other.
Globalping is a free API that requires no registration to get started. Here are the limits:
Higher limits are available for members, making it ideal for both casual and professional use.
The Globalping PowerShell Module offers a rich set of cmdlets to cover all your network diagnostic needs:
With these cmdlets, you can script everything from simple pings to advanced HTTP diagnostics, all while monitoring your API usage and probe availability.
Globalping PowerShell simplifies network diagnostics by bundling the Globalping API into cmdlets. Here's why it's awesome:
Install the module from the PowerShell Gallery:
Install-Module Globalping -Scope CurrentUser
Import-Module Globalping
Working directly with the repository? Clone and build it:
cd Globalping
dotnet build
Import-Module ./Module/Globalping.psd1 -Force
You can start using Globalping without an API key. Here's how to run a Ping from Germany:
Start-GlobalpingPing -Target "example.com" -SimpleLocations "DE"
Want to run from multiple locations? Just add more countries:
Start-GlobalpingPing -Target "example.com" -SimpleLocations "DE", "US", "GB"
For higher limits and more probes, use the -ApiKey
parameter:
Start-GlobalpingPing -Target "example.com" -SimpleLocations "DE" -ApiKey "your-api-key"
Resolve domain names with ease:
Start-GlobalpingDns -Target "evotec.xyz" -Verbose | Format-Table *
Retrieve raw DNS results:
$OutputDns = Start-GlobalpingDns -Target "evotec.xyz" -Verbose -Raw
$OutputDns.Results[0].ToDnsRecords() | Format-Table *
Send HTTP requests or check headers from probes:
$Output = Start-GlobalpingHttp -Target "evotec.xyz" -Verbose -SimpleLocations "Krakow+PL"
$Output.Headers | Format-Table
Retrieve raw HTTP results:
$OutputHttp = Start-GlobalpingHttp -Target "evotec.xyz" -Verbose -Raw
$OutputHttp.Results[0].Data.Headers | Format-Table
Perform MTR traces with detailed hop statistics:
$OutputMtr = Start-GlobalpingMtr -Target "evotec.xyz" -Verbose -Raw -SimpleLocations "Krakow+PL", "Berlin+DE"
$OutputMtr.Results[0].ToMtrHops() | Format-Table *
Run a Traceroute:
Start-GlobalpingTraceroute -Target "evotec.xyz" -Verbose | Format-Table *
List available probes:
Get-GlobalpingProbe | Select-Object -First 5 | Format-Table *
Monitor your API usage:
Get-GlobalpingLimit -ApiKey "your-api-key" | Format-Table
Retrieve raw limit information:
Get-GlobalpingLimit -ApiKey "your-api-key" -Raw | Format-List
If you're working in both PowerShell and C#, the Globalping ecosystem has you covered. Use the PowerShell module for quick scripting and automation, and leverage Globalping.NET for robust application development. Together, they form a powerful toolkit for network diagnostics.
Explore the source code and contribute to the project on GitHub: Globalping Repository
The Globalping PowerShell Module is a must-have for automating network diagnostics. With its intuitive cmdlets and powerful features, you can run measurements from diverse locations, fetch detailed results, and monitor your API limits effortlessly.
Ready to automate your network tests? Install the Globalping PowerShell Module today and start scripting your diagnostics!
This post was last modified on 15 czerwca, 2025 22:01
Ever wondered how to run network diagnostics like Ping, Traceroute, or DNS queries from probes…
Discover new features in the PSWriteHTML PowerShell module – including New-HTMLInfoCard, improved layout controls with…
Security Identifier (SID) History is a useful mechanism in Active Directory (AD) migrations. It allows…
Today, I made the decision to upgrade my test environment and update the version of…
Have you ever looked at your Active Directory and wondered, "Why do I still have…
Active Directory replication is a critical process that ensures the consistent and up-to-date state of…