Thomas is the EMEA Global Black Belt (GBB) for Sovereign Cloud at Microsoft, helping organizations across the region harness Microsoft’s sovereign, hybrid, multicloud, and edge solutions. He works directly with C-level leaders and technical teams to remove roadblocks, accelerate digital transformation, and shape long-term cloud strategies that meet business and regulatory needs.
With over 15 years of experience in cloud and datacenter, including his previous role as Principal Program Manager and Chief Evangelist for Azure Hybrid, he combines deep technical expertise with a passion for customer success. He specializes in creating scalable architectures, solution accelerators, and thought leadership that drive adoption and innovation on Azure.
Thomas is a passionate community advocate and frequently speaks at industry events such as Microsoft Ignite and Microsoft TechDays. He shares his expertise through his Cloud and Datacenter Blog at www.thomasmaurer.ch and on LinkedIn and X.com www.twitter.com/thomasmaurer.
First, if you want a bit more detail or more control over the ping, you could use the Test-Connection cmdlet. If you want a simple up/down you could use something like this:
The other problem with the ping class is that if the destination is unreachable, the address you get back is yours., I don’t think that is what you intended.
I know I’m a bit late to the party, but I thought I’d add that when I run the commands, only xxx.xxx.xxx.1 is pinged…
But if I run “1..254 | % { write-host $_ }” then it gives me the number 1 to 254, each on a separate line…
Hi all , i need to query specific segments and get the segment and description from sites and services
199.52.213.0/24
199.52.241.128/26
199.49.54.0/23 (Segment not created)
199.49.63.0/26 (Segment not created)
199.49.65.0/26 (Segment not created)
199.49.65.64/26 (Segment not created)
199.49.70.0/26 (Segment not created)
and os on
is there a powerhsle to export all IP Segments to CSV file ?
My name is Thomas Maurer. I am a EMEA Global Black Belt (GBB) for Sovereign Cloud at Microsoft. I am part of Azure Cloud & AI Platforms and engage with the community and customers around the world. Opinions are my own.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
First, if you want a bit more detail or more control over the ping, you could use the Test-Connection cmdlet. If you want a simple up/down you could use something like this:
1..254 | foreach { new-object psobject -prop @{Address=”172.16.10.$_”;Pin
g=(test-connection “172.16.10.$_” -quiet -count 1)}}
I’m only sending a single ping in this example.
The other problem with the ping class is that if the destination is unreachable, the address you get back is yours., I don’t think that is what you intended.
I took this and ran with it.
Ping IP Range with Windows #PowerShell http://bit.ly/sCjeCR
thanks. it was very usefull
It is possible to filter unreachable hosts and shows only “success” hosts?
I know I’m a bit late to the party, but I thought I’d add that when I run the commands, only xxx.xxx.xxx.1 is pinged…
But if I run “1..254 | % { write-host $_ }” then it gives me the number 1 to 254, each on a separate line…
Hah, I figured it out, of course it only returns my machines own address until it finds an address that actually return a ping -_-
Hi Thomas,
I created a ping ip range script using PowerShell workflows :-)
Check my github: https://github.com/stefanstranger/PowerShell/commit/61e676459e7eed70e811aafd3e03b83c37668821
/Stefan
Nice! :)
Hi all , i need to query specific segments and get the segment and description from sites and services
199.52.213.0/24
199.52.241.128/26
199.49.54.0/23 (Segment not created)
199.49.63.0/26 (Segment not created)
199.49.65.0/26 (Segment not created)
199.49.65.64/26 (Segment not created)
199.49.70.0/26 (Segment not created)
and os on
is there a powerhsle to export all IP Segments to CSV file ?
I know it’s old but if someone stumbles upon this and has the same question as Mahmood:
Change the second line to this:
1..254 | % { $ping.send(“192.168.1.$_”) | where {$_.status -eq “Success”} | select address, status }
Hi. I get this output, (address column truncated).
Any easy way to fix that?
Address Status
150…. Success
Timedout
150…. Success
1..254 | foreach { new-object psobject -prop @{Address=”172.16.10.$_”;Pin
g=(test-connection “172.16.10.$_” -quiet -count 1)} | Format-Table -autosize}
This may work, but has horrible readability. I would never use a command like this in my code. I would prefer Stefan Strangers solution.
Thank for putting this up there, nice quick method to test a load of IPs :)
thanks :)